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): username = ud.user + '@' else: username = "" + if ud.proto == "ssh": + # Some servers, e.g. bitbucket.org can't cope with ssh:// + # and removing that means we need a : before path. + return "%s%s:%s" % (username, ud.host, ud.path) return "%s://%s%s%s" % (ud.proto, username, ud.host, ud.path) def _revision_key(self, ud, d, name):