You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interestingly it tries to resolve the tag when you specify ^{blob} although it is not clear to me when this would ever work given that TagObject.object is usually a commit.
I may also add that this implementation is definitely not according to 'spec' and probably just superficially resembles git rev-parse semantics.
Probably it's just good enough for the common cases, which is a reason for issues around it being quite rare overall.
Activity
flichtenheld commentedon Jan 9, 2025
Re-verified that is present in the current release (3.1.44)
flichtenheld commentedon Jan 9, 2025
Interestingly it tries to resolve the tag when you specify
^{blob}
although it is not clear to me when this would ever work given thatTagObject.object
is usually a commit.flichtenheld commentedon Jan 9, 2025
Found from the test suite that
<tag>^{}
works. So this a usable work-around. Will prepare a patch anyway.Repo.rev_parse: Handle <tag>^{commit} correctly
Byron commentedon Jan 10, 2025
Thanks a lot for digging into this!
I may also add that this implementation is definitely not according to 'spec' and probably just superficially resembles
git rev-parse
semantics.Probably it's just good enough for the common cases, which is a reason for issues around it being quite rare overall.