[DEV] add submodule command

This commit is contained in:
Edouard DUPIN 2019-06-25 13:31:27 +02:00
parent 49d415f26b
commit 93a05a7145

View File

@ -318,4 +318,23 @@ def push(path_repository, remote_name, elements):
debug.verbose("execute : " + cmd)
return_value = multiprocess.run_command(cmd, cwd=path_repository)
generic_display_error(return_value, "push")
return return_value
return return_value
def submodule_sync(path_repository, remote_name):
cmd = "git submodule sync"
debug.verbose("execute : " + cmd)
return_value = multiprocess.run_command(cmd, cwd=path_repository)
generic_display_error(return_value, "submodule_sync")
"""
if ret[:31] == "Synchronizing submodule url for":
#all is good ...
debug.info(" " + ret)
elif ret != "" \
and ret != False:
# all is good, ready to get the system work corectly
debug.info("'" + ret + "'")
debug.error("Can not sync submodules ... ")
"""