- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 931
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
rev_parse does not handle <tag>^{commit} correctly #1995
Comments
Re-verified that is present in the current release (3.1.44) |
Interestingly it tries to resolve the tag when you specify |
Found from the test suite that |
This should resolve to commit object. Fixes: gitpython-developers#1995 Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
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 <tag>^{commit}
resolves to the commit that the tag points to.repo.rev_parse("<tag>^{commit}")
saysValueError: Could not accommodate requested object type 'commit', got tag
It should instead return
TagObject.object
(at least if that is a commit object).The text was updated successfully, but these errors were encountered: