commit 17a4a5e078f3519a101cdc0d1facde0000963f41 from: Jelmer Vernooij via: GitHub date: Tue Feb 14 11:20:03 2023 UTC Merge pull request #1146 from skshetry/no-strip-url client: preserve original url during clone commit - 01d0ebaa6ff7e949626152ec081338239f7fb128 commit + 17a4a5e078f3519a101cdc0d1facde0000963f41 blob - 1f14f34b6940dd6ba890efcb0f36201d61590890 blob + 128da1beb1b0159a20acac400d8d9a6475f08981 --- dulwich/client.py +++ 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):