It fails with TypeError: HEAD is a detached symbolic reference as it points to.
Can you elaborate?
It would be good to see some code that will reproduce it. Thank you.
Improve pure Python rev-parse coverage and behavior (#2135)
I want to get the commit of a tag with
repo = git.Repo('.') commit = repo.commit(tag).hexsha
When the tag is something like @standardnotes/mobile@3.58.252 this fails with TypeError: HEAD is a detached symbolic reference as it points to error.
It seems you have fix this? Thanks for your quick fix!
Activity
Byron commented on Apr 28, 2026
Can you elaborate?
It would be good to see some code that will reproduce it. Thank you.
Improve pure Python rev-parse coverage and behavior (#2135)
linsui commented on Apr 29, 2026
I want to get the commit of a tag with
When the tag is something like @standardnotes/mobile@3.58.252 this fails with TypeError: HEAD is a detached symbolic reference as it points to error.
It seems you have fix this? Thanks for your quick fix!