Versioneer causes `fatal: bad revision 'HEAD'` under special circumstances
See original GitHub issueThe full story is available in https://github.com/datalad/datalad-osf/pull/100 and a tentative fix was proposed at https://github.com/datalad/datalad-osf/pull/100#issuecomment-650316993 by @kyleam
The summary is:
- Deploying a Python package in editable fashion (
pip install -e .
) that installs a Git remote helper leads to unconditionalfatal: bad revision 'HEAD'
messages in boilerplate code. - ultimately this is due to an inadequate execution environment that versioneer is using to run Git commands
- a minimal demo is contained in https://github.com/datalad/datalad-osf/pull/100#issuecomment-650316993
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
When importing helics in Python we get a git error message ...
Versioneer causes fatal: bad revision 'HEAD ' under special circumstances python-versioneer/python-versioneer#210.
Read more >fatal: bad default revision 'HEAD' - git - Stack Overflow
We have it installed on one of our Linux boxes. Tortoise GIT is my windows client. This morning I checked in some changes,...
Read more >versioneer — NiftyNet 0.6.0 documentation - Read the Docs
Debugging Versioneer tries to avoid fatal errors: if something goes wrong ... Known Limitations Some situations are known to cause problems for Versioneer....
Read more >versioneer.py · master · mpm-at-recover / pycbg · GitLab
0.7 tag, has a unique revision id of "574ab98", and is "dirty" (it has ... Some situations are known to cause problems for...
Read more >versioneer.py · master · Tantet Alexis (M.) / e4clim - Gitlab IN2P3
`_version.py` also contains `$Revision$` markers, ... Known Limitations Some situations are known to cause problems for Versioneer.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It looks like a bad
cmdclass
here.What you probably want is something like:
You should be able to see whether it’s working with something like:
Ahh, thanks! That actually helps a lot with understanding how
cmdclass
works.