From: Daniel Koch Date: Fri, 9 Dec 2016 21:38:50 +0000 (-0500) Subject: Fix protocol auto-detection for ssh X-Git-Tag: upstream/0.1.0~612 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=94b81e2f776157b22db4213e2c82ebb8beb541e6;hp=53e2c8b37ecf20e522fc79468945706459f5e934;p=platform%2Fupstream%2FVK-GL-CTS.git Fix protocol auto-detection for ssh oss-cts issue 21 Change-Id: Id0bf39fc6d9eb64ef9415e5101a9a8bd042848aa --- diff --git a/external/fetch_sources.py b/external/fetch_sources.py index bb14093..84de2bc 100644 --- a/external/fetch_sources.py +++ b/external/fetch_sources.py @@ -163,7 +163,7 @@ class GitRepo (Source): if proc.returncode != 0: raise Exception("Failed to execute 'git ls-remote origin', got %d" % proc.returncode) - if stdout[:3] == 'ssh': + if (stdout[:3] == 'ssh') or (stdout[:3] == 'git'): protocol = 'ssh' else: assert stdout[:5] == 'https'