GNOME Bugzilla – Bug 578143
gitg doesn't display tags from tag objects
Last modified: 2009-04-20 11:27:36 UTC
Originally filed as Debian bug: http://bugs.debian.org/521062 "I started to sign the tags with my gnupg key and they don't show up in gitg, even though they show up in tig and gitk." and my reply: """If you're interested, the real reason they're not showing up is not because they're signed, it's because they're real tag objects. Currently gitg can only deal with tags which point to a commit (so, a file in the refs/tags/ namespace containing a sha1 of a commit object to point to). Signed tags, and other normal tags these days, are also proper tag objects. You can find the commit a tag object points to by doing: % git cat-file tag <TAG-SHA> This is essentially what I've done in the patch below, but I'm not very happy with it at all. It would be great if you could check whether this patch fixes your problem and I'll submit it upstream for review and a clean-up. The patch can be found in the debian-patches branch of the Debian packaging: http://git.jonnylamb.com/?p=packaging/gitg.git;a=commitdiff;h=91767199d76f00 """
I solved this, but I did it a little bit differently. I added the field %(*objectname) to the git for-each-ref command, which resolves to the commit SHA for real tag objects. But thanks for the bug filing and the patching!