소스 검색

client: preserve original url during clone

Saugat Pachhai (सौगात) 2 년 전
부모
커밋
fda52d4c36
1개의 변경된 파일0개의 추가작업 그리고 6개의 파일을 삭제
  1. 0 6
      dulwich/client.py

+ 0 - 6
dulwich/client.py

@@ -2149,12 +2149,6 @@ class AbstractHttpGitClient(GitClient):
         username = parsedurl.username
         if username is not None:
             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)
 
     def __repr__(self):