Skip to content

Instantly share code, notes, and snippets.

@xavfernandez
Created October 5, 2017 09:10
Show Gist options
  • Save xavfernandez/47ac526e0c6bd0ada872deba2c3c2c05 to your computer and use it in GitHub Desktop.
Save xavfernandez/47ac526e0c6bd0ada872deba2c3c2c05 to your computer and use it in GitHub Desktop.
With https://github.com/pypa/pip/pull/4676:
*Short hash*
(tmp-570ff8c04efbe63) [xfernandez@xaferiba pip]$ pip install -e git+https://github.com/PyCQA/mccabe.git@2b46671#egg=mccabe
Looking in indexes: https://somewhere
Obtaining mccabe from git+https://github.com/PyCQA/mccabe.git@2b46671#egg=mccabe
Updating /home/xfernandez/.virtualenvs/tmp-571ff8c04efbe63/src/mccabe clone (to revision 2b46671)
Could not find a tag or branch '2b46671', assuming commit or ref
Installing collected packages: mccabe
Found existing installation: mccabe 0.6.1
Uninstalling mccabe-0.6.1:
Successfully uninstalled mccabe-0.6.1
Running setup.py develop for mccabe
Successfully installed mccabe
*Exact hash*
(tmp-571ff8c04efbe63) [xfernandez@xaferiba pip]$ pip install -e git+https://github.com/PyCQA/mccabe.git@2b466712a067a171e8d5a0fe6210e004cfe103a8#egg=mccabe
Looking in indexes: https://somewhere
Obtaining mccabe from git+https://github.com/PyCQA/mccabe.git@2b466712a067a171e8d5a0fe6210e004cfe103a8#egg=mccabe
Skipping because already up-to-date.
Installing collected packages: mccabe
Found existing installation: mccabe 0.6.1
Uninstalling mccabe-0.6.1:
Successfully uninstalled mccabe-0.6.1
Running setup.py develop for mccabe
Successfully installed mccabe
*Too short hash*
(tmp-571ff8c04efbe63) [xfernandez@xaferiba pip]$ pip install -e git+https://github.com/PyCQA/mccabe.git@2#egg=mccabe
Looking in indexes: https://somewhere
Obtaining mccabe from git+https://github.com/PyCQA/mccabe.git@2#egg=mccabe
Updating /home/xfernandez/.virtualenvs/tmp-571ff8c04efbe63/src/mccabe clone (to revision 2)
Could not find a tag or branch '2', assuming commit or ref
fatal: ambiguous argument '2': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Command "git reset --hard -q 2" failed with error code 128 in /home/xfernandez/.virtualenvs/tmp-571ff8c04efbe63/src/mccabe
While currently:
*Short hash*
(tmp-571ff8c04efbe63) [xfernandez@xaferiba pip]$ pip install -e git+https://github.com/PyCQA/mccabe.git@2b46671#egg=mccabe
Obtaining mccabe from git+https://github.com/PyCQA/mccabe.git@2b46671#egg=mccabe
Skipping because already up-to-date.
Installing collected packages: mccabe
Found existing installation: mccabe 0.6.1
Uninstalling mccabe-0.6.1:
Successfully uninstalled mccabe-0.6.1
Running setup.py develop for mccabe
Successfully installed mccabe
*Exact hash*
(tmp-571ff8c04efbe63) [xfernandez@xaferiba pip]$ pip install -e git+https://github.com/PyCQA/mccabe.git@2b466712a067a171e8d5a0fe6210e004cfe103a8#egg=mccabe
Obtaining mccabe from git+https://github.com/PyCQA/mccabe.git@2b466712a067a171e8d5a0fe6210e004cfe103a8#egg=mccabe
Skipping because already up-to-date.
Installing collected packages: mccabe
Found existing installation: mccabe 0.6.1
Uninstalling mccabe-0.6.1:
Successfully uninstalled mccabe-0.6.1
Running setup.py develop for mccabe
Successfully installed mccabe
*Too short hash*
(tmp-571ff8c04efbe63) [xfernandez@xaferiba pip]$ pip install -e git+https://github.com/PyCQA/mccabe.git@2b#egg=mccabe
Obtaining mccabe from git+https://github.com/PyCQA/mccabe.git@2b#egg=mccabe
Skipping because already up-to-date.
Installing collected packages: mccabe
Found existing installation: mccabe 0.6.1
Uninstalling mccabe-0.6.1:
Successfully uninstalled mccabe-0.6.1
Running setup.py develop for mccabe
Successfully installed mccabe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment