GitPython icon indicating copy to clipboard operation
GitPython copied to clipboard

name_to_object in fun.py does not handle packed-refs

Open Gustra opened this issue 7 years ago • 1 comments

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

Gustra avatar Nov 02 '18 07:11 Gustra

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.

Byron avatar Dec 22 '18 13:12 Byron