-
Notifications
You must be signed in to change notification settings - Fork 870
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
Tags are recognized as commits #6
Comments
Hmm... That is strange. I'll take a look! |
Ok. So we aren't quite handling tag listing properly right now. I need to actually lookup the tag using the reference instead of just looking at what that reference points too (which is obviously a commit in most cases). It also looks like tag listing is actually getting support in libgit2 soon based on this PR. |
I think I nailed the root cause. Git handles two different kinds of tags (annotated and lightweight).
@gorbach : Currently, the "null" tags that you encounter are Lightweight tags. |
Yes, you right. This issue is caused by lightweight tags. |
We've added support for lightweight tags. Would you please check that nulltoken/libgit2sharp@1b73c29 indeed fixes the issue? |
Thanks! Merged your fix, works very well. Waiting for merge in main branch. |
Quite glad it works as expected :) Should be merged by tomorrow. |
This fix has been merged to libgit2/master. Thanks for having pointed this issue out :) |
Hi! I've found a strange issue. Enumerating tag in repository git://github.com/spdr870/gitextensions.git gives 81 nulls and 1 real tag. All other tags are visible in repo.Refs as commits.
Code to list tags:
sample code is available here - git@github.com:gorbach/libgit2sharp.git (branch git-log)
The text was updated successfully, but these errors were encountered: