gitk: Fix display of newly-created tags
If the user creates a tag with the "create tag" dialog in gitk and then clicks on the newly-created tag, its contents don't get displayed. The reason is that rereadrefs hasn't been called, meaning the tag doesn't exist in $tagobjid. This causes the cat-file to fail. Instead of using $tagobjid, pass the $tag directly, ensuring the tag contents are populated correctly. Signed-off-by: David Dulson <dave@dulson.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Dave Dulson committed
Jan 3, 2010 at 14:56 UTC
fcacf489577e225d78b290290765775c62c56464
1 file changed
+1
-1
gitk
+1
-1
@@ -10493,7 +10493,7 @@ proc showtag {tag isnew} {
10493
set linknum 0
10494
if {![info exists tagcontents($tag)]} {
10495
catch {
10496
- set tagcontents($tag) [exec git cat-file tag $tagobjid($tag)]
10496
+ set tagcontents($tag) [exec git cat-file tag $tag]
10497
}
10498
}
10499
if {[info exists tagcontents($tag)]} {