2
0
Эх сурвалжийг харах

Merge pull request #1146 from skshetry/no-strip-url

client: preserve original url during clone
Jelmer Vernooij 2 жил өмнө
parent
commit
17a4a5e078

+ 0 - 6
dulwich/client.py

@@ -2149,12 +2149,6 @@ class AbstractHttpGitClient(GitClient):
         username = parsedurl.username
         username = parsedurl.username
         if username is not None:
         if username is not None:
             kwargs["username"] = urlunquote(username)
             kwargs["username"] = urlunquote(username)
-        netloc = parsedurl.hostname
-        if parsedurl.port:
-            netloc = "{}:{}".format(netloc, parsedurl.port)
-        if parsedurl.username:
-            netloc = "{}@{}".format(parsedurl.username, netloc)
-        parsedurl = parsedurl._replace(netloc=netloc)
         return cls(urlunparse(parsedurl), **kwargs)
         return cls(urlunparse(parsedurl), **kwargs)
 
 
     def __repr__(self):
     def __repr__(self):