Skip to content

Commit 9c69417

Browse files
committed
sync(git): Fix issue with @ in chomp_protocol
This would cause Git SSH URLs to be chopped off in set_remote() See also: #431
1 parent b72c398 commit 9c69417

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/libvcs/sync/git.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -605,9 +605,6 @@ def chomp_protocol(url: str) -> str:
605605
if "+" in url:
606606
url = url.split("+", 1)[1]
607607
scheme, netloc, path, query, frag = urlparse.urlsplit(url)
608-
rev = None
609-
if "@" in path:
610-
path, rev = path.rsplit("@", 1)
611608
url = urlparse.urlunsplit((scheme, netloc, path, query, ""))
612609
if url.startswith("ssh://[email protected]/"):
613610
url = url.replace("ssh://", "git+ssh://")

0 commit comments

Comments
 (0)