Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upfetch --prune resulting in a dangling HEAD #962
Labels
Comments
Thanks for making the issue so easy to follow! In order not to break code which might rely on this particular behaviour though, I would certainly prefer adding an option like |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fetch prune fails if HEAD ends up dangling. Given that the message appears more warning like in nature, as opposed to an error, should GitPython handle this/ignore it?
To reproduce with pure git:
The fetch returns something like this:
GitPython crashes here as it parses the FetchInfo:
GitPython/git/remote.py
Lines 290 to 292 in 85cf7e8
Should dangling just be ignored in general or should there be an option to
ignore_dangling
?