Removes "git@" from git remote URL
- Dominant language
- Python
- Stars
- 2.8k
- Forks
- 165
- PR merge metrics
- No merged PRs in 30d
Description
Hi, ClearML [uses](https://github.com/allegroai/clearml/blob/aad01056b548660bb271c4f98447b715b8ba4c7d/clearml/backend_interface/task/repo/util.py#L23) furl to remove a user from a git remote URL, so furl removes username when the remote URL is like "ssh://git@0.0.0.0:1234/path/to/repo.git" (with "ssh://git@"):
- Ok:
`furl.furl("git@0.0.0.0:1234/path/to/repo.git").remove(username=True, password=True).tostr()`
expected: git@0.0.0.0:1234/path/to/repo.git
received: git@0.0.0.0:1234/path/to/repo.git
- Not as expected:
`furl.furl("ssh://git@0.0.0.0:1234/path/to/repo.git").remove(username=True, password=True).tostr()`
expected: ssh://git@0.0.0.0:1234/path/to/repo.git
received: ssh://0.0.0.0:1234/path/to/repo.git
should I use more specific lib/tool to parse git-like URLs?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.