]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
Revert "fetch/git: Change to use clearer ssh url syntax for broken servers"
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 15 Jan 2016 15:01:41 +0000 (15:01 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 15 Jan 2016 15:01:41 +0000 (15:01 +0000)
This reverts commit 4193e99adce8e88f12ac88d7578ad39575f7e346.

It seems the underlying issue was caused by ":" in the url which isn't
supported. The patch was therefore incorrect.

lib/bb/fetch2/git.py

index e6789bc84080760502e6c55956d5482c00c89cb9..0513348a18e83b57586e3feb38ba9a7da2e8d265 100644 (file)
@@ -331,10 +331,6 @@ 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):