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

client: preserve original url during clone

Saugat Pachhai (सौगात) 2 жил өмнө
parent
commit
fda52d4c36

+ 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):