From 1a7129d63263c3dd214a8bf7cb61ee16b7d3742d Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Tue, 16 Apr 2019 15:20:00 +0200 Subject: [PATCH] [DEBUG] correct the sync with ssh interface --- island/actions/islandAction_sync.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/island/actions/islandAction_sync.py b/island/actions/islandAction_sync.py index aa1ba15..113498e 100644 --- a/island/actions/islandAction_sync.py +++ b/island/actions/islandAction_sync.py @@ -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 += "/"