spapas / python-git-info

A simple project to get information from the git repository of your project
https://pypi.org/project/python-git-info/
MIT License
28 stars 8 forks source link

only one pack supported? #6

Closed glensc closed 3 years ago

glensc commented 3 years ago

this can't be right, what if the result is not in the first pack?

➔ ls .git/objects/pack/ -1
pack-0ec15a5c455b073ecd17117d2e532912ffd92718.idx
pack-0ec15a5c455b073ecd17117d2e532912ffd92718.pack
pack-187f6797dc3ecb60b02c39bfa6eae609d0ef3a0e.idx
pack-187f6797dc3ecb60b02c39bfa6eae609d0ef3a0e.pack
pack-d4a73e4189acceb1402f49cde1bcfc72601fb1c3.idx
pack-d4a73e4189acceb1402f49cde1bcfc72601fb1c3.pack
pack-fa81fcae803551f069e6e95fdd552bf46dd08b04.idx
pack-fa81fcae803551f069e6e95fdd552bf46dd08b04.pack
spapas commented 3 years ago

Hello thank you for reporting the problem! Is there an example where the library breaks so I can debug it?

glensc commented 3 years ago

@spapas no. I just looked at the code.

glensc commented 3 years ago

I was actually looking for something simple that can do git describe --tags, but this will do as well.

glensc commented 3 years ago

@spapas I guess you can just copy .pack, .idx from any other arbitrary .git dir to test.

spapas commented 3 years ago

This should be fixed now.