-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Labels
Description
Description
When parsing the full github url which can point to branch and the using urls the tree/branch name should not be part of ssh and git urls.
Steps to reproduce
>>> from giturlparse import parse
>>> p=parse("https://example.com/user/repo/tree/branch")
>>> p.urls
{'https': 'https://example.com/user/repo/tree/branch.git', 'ssh': 'git@example.com:user/repo/tree/branch.git', 'git': 'git://example.com/user/repo/tree/branch.git'}Versions
Expected behaviour
git@example.com:user/repo.git
git://example.com/user/repo.git
I do not know whether it is possible to specify branch in this notation at all.
Actual behaviour
git@example.com:user/repo/tree/branch.git is invalid
git://example.com/user/repo/tree/branch.git is invalid
Additional information
I do realize this is not exactly the right "git url". The input type should probably be github_web or something.