[DEBUG] correct the sync with ssh interface

This commit is contained in:
Edouard DUPIN 2019-04-16 15:20:00 +02:00
parent 49874b7785
commit 1a7129d632

View File

@ -65,9 +65,10 @@ def execute(arguments):
# this is a new clone ==> this is easy ...
#clone the manifest repository
address_manifest = ""
### example git@git.plouf.com:basic_folder
cmd = "git clone " + elem.select_remote["fetch"]
if elem.select_remote["fetch"][0:4] == "git@":
if elem.select_remote["fetch"][0:4] == "git@" \
and len(elem.select_remote["fetch"][4:].split(":")) <= 1:
cmd += ":"
else:
cmd += "/"