We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some systems, e.g. npm, support specifying a commit or branch by adding #commit at the end of the url; see https://docs.npmjs.com/files/package.json#git-urls-as-dependencies
After this feature is implemented, one would expect
git clone https://github.com/retr0h/git-url-parse cd git-url-parse pip3 install --user -e . python3 -c 'import giturlparse; print(giturlparse.parse("[email protected]:hi/there#rel-1.1"))'
to output e.g.
Parsed(pathname='hi/there', protocols=[], protocol='ssh', href='[email protected]:hi/there#rel-1.1', resource='gitlab.com', user='git', port=None, name='there', owner='hi', ref='rel-1.1')
or possibly
Parsed(pathname='hi/there', protocols=[], protocol='ssh', href='[email protected]:hi/there', resource='gitlab.com', user='git', port=None, name='there', owner='hi', ref='rel-1.1')
(because arguably href should be what one passes to 'git clone')
The text was updated successfully, but these errors were encountered:
See https://github.com/retr0h/git-url-parse/pull/17
Sorry, something went wrong.
No branches or pull requests
Some systems, e.g. npm, support specifying a commit or branch by adding #commit at the end of the url; see
https://docs.npmjs.com/files/package.json#git-urls-as-dependencies
After this feature is implemented, one would expect
git clone https://github.com/retr0h/git-url-parse
cd git-url-parse
pip3 install --user -e .
python3 -c 'import giturlparse; print(giturlparse.parse("[email protected]:hi/there#rel-1.1"))'
to output e.g.
Parsed(pathname='hi/there', protocols=[], protocol='ssh', href='[email protected]:hi/there#rel-1.1', resource='gitlab.com', user='git', port=None, name='there', owner='hi', ref='rel-1.1')
or possibly
Parsed(pathname='hi/there', protocols=[], protocol='ssh', href='[email protected]:hi/there', resource='gitlab.com', user='git', port=None, name='there', owner='hi', ref='rel-1.1')
(because arguably href should be what one passes to 'git clone')
The text was updated successfully, but these errors were encountered: