From 94b81e2f776157b22db4213e2c82ebb8beb541e6 Mon Sep 17 00:00:00 2001 From: Daniel Koch Date: Fri, 9 Dec 2016 16:38:50 -0500 Subject: [PATCH 1/1] Fix protocol auto-detection for ssh oss-cts issue 21 Change-Id: Id0bf39fc6d9eb64ef9415e5101a9a8bd042848aa --- external/fetch_sources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' -- 2.7.4