Skip to content

name_to_object in fun.py does not handle packed-refs #805

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Gustra opened this issue Nov 2, 2018 · 1 comment
Open

name_to_object in fun.py does not handle packed-refs #805

Gustra opened this issue Nov 2, 2018 · 1 comment

Comments

@Gustra
Copy link

Gustra commented Nov 2, 2018

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

@Byron
Copy link
Member

Byron commented Dec 22, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants