Git Product home page Git Product logo

Comments (8)

tclem avatar tclem commented on May 16, 2024

Hmm... That is strange. I'll take a look!

from libgit2sharp.

tclem avatar tclem commented on May 16, 2024

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.

from libgit2sharp.

nulltoken avatar nulltoken commented on May 16, 2024

I think I nailed the root cause.

Git handles two different kinds of tags (annotated and lightweight).

  • Lightweight tags are nothing more than a direct reference to an object (commit, tree, ...)
  • Annotated tags are a combination of a tag-object stored in the git object database and a direct reference to this tag-object

@gorbach :

Currently, the "null" tags that you encounter are Lightweight tags.
Thanks for spotting this. It's a very nice issue :) We're working on it! Fixing this will require some slights changes to the API.

from libgit2sharp.

gorbach avatar gorbach commented on May 16, 2024

Yes, you right. This issue is caused by lightweight tags.

from libgit2sharp.

nulltoken avatar nulltoken commented on May 16, 2024

We've added support for lightweight tags.

Would you please check that nulltoken/libgit2sharp@1b73c29 indeed fixes the issue?

from libgit2sharp.

gorbach avatar gorbach commented on May 16, 2024

Thanks! Merged your fix, works very well. Waiting for merge in main branch.

from libgit2sharp.

nulltoken avatar nulltoken commented on May 16, 2024

Quite glad it works as expected :)

Should be merged by tomorrow.

from libgit2sharp.

nulltoken avatar nulltoken commented on May 16, 2024

This fix has been merged to libgit2/master. Thanks for having pointed this issue out :)

from libgit2sharp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.