* gitk bug: annotated tag displays as a lightweight tag when branch of the same name is on the same commit
@ 2010-05-05 14:17 David Holmer
0 siblings, 0 replies; only message in thread
From: David Holmer @ 2010-05-05 14:17 UTC (permalink / raw)
To: git
I found an edge case bug in the display behavior of gitk. I encountered it while
working in a repository where we make branches with a name like "1.0.3" and
create an annotated tag "1.0.3" when everything is ready on that branch. In the
process of scripting some of this, I thought I was not creating the annotated
tags correctly because when I'd look at them in gitk, they were showing up as
lightweight tags. However I noticed that "git describe" was showing the tag name
correctly, and thus the issue was in gitk.
The bug can be simply reproduced by the following sequence of commands:
git init
touch test
git add test
git commit -m "commit message"
git tag -am "annotated tag message" master
gitk
The master tag is displayed in gitk pane as a lightweight tag rather than an
annotated tag:
Tag: master
Id: 5b0a763ec5791da4981f14ff5f6ef6384117945c
However if I move the master branch on to a new commit or rename it:
git branch -m renamed
Then the tag is correctly displayed by gitk as an annotated tag:
object 5b0a763ec5791da4981f14ff5f6ef6384117945c
type commit
tag master
tagger David Holmer <xxxxx@xxxxxxxxxxx> 1273068181 -0400
annotated tag message
Thank you,
David
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-05-05 14:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-05 14:17 gitk bug: annotated tag displays as a lightweight tag when branch of the same name is on the same commit David Holmer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).