From 93a05a7145f8a63c74d2dc6d28faa447f208036f Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Tue, 25 Jun 2019 13:31:27 +0200 Subject: [PATCH] [DEV] add submodule command --- island/commands.py | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/island/commands.py b/island/commands.py index 1a7282a..7fb73c1 100644 --- a/island/commands.py +++ b/island/commands.py @@ -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 \ No newline at end of file + 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 ... ") + """ + +