summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/fetch2/git.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index 5ffab22056..10ba1d3a61 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -330,6 +330,10 @@ class Git(FetchMethod):
330 username = ud.user + '@' 330 username = ud.user + '@'
331 else: 331 else:
332 username = "" 332 username = ""
333 if ud.proto == "ssh":
334 # Some servers, e.g. bitbucket.org can't cope with ssh://
335 # and removing that means we need a : before path.
336 return "%s%s:%s" % (username, ud.host, ud.path)
333 return "%s://%s%s%s" % (ud.proto, username, ud.host, ud.path) 337 return "%s://%s%s%s" % (ud.proto, username, ud.host, ud.path)
334 338
335 def _revision_key(self, ud, d, name): 339 def _revision_key(self, ud, d, name):