GitPython
GitPython copied to clipboard
name_to_object in fun.py does not handle packed-refs
Sometimes references are stored in the file .git/packed-refs. The code in fun.name_do_object() does not handle that case, causing BadName exception.
Ref: https://git-scm.com/docs/git-pack-refs
Thanks a lot for reporting.
Would you have a few lines of code that trigger said BadName exception? That would also allow to post a workaround right here until there is a fix.