summaryrefslogtreecommitdiff
path: root/gitk
diff options
context:
space:
mode:
authorLibravatar Dave Dulson <dave@dulson.com>2010-01-03 14:56:25 +0000
committerLibravatar Paul Mackerras <paulus@samba.org>2010-01-12 22:04:46 +1100
commitfcacf489577e225d78b290290765775c62c56464 (patch)
treeb42786eb557ea8217698d9addbb2ec313bb5ed2a /gitk
parentgitk: Enable gitk to create tags with messages (diff)
downloadtgif-fcacf489577e225d78b290290765775c62c56464.tar.xz
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>
Diffstat (limited to 'gitk')
-rwxr-xr-xgitk2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitk b/gitk
index 0b3e5bca73..de911b6e6d 100755
--- a/gitk
+++ b/gitk
@@ -10493,7 +10493,7 @@ proc showtag {tag isnew} {
set linknum 0
if {![info exists tagcontents($tag)]} {
catch {
- set tagcontents($tag) [exec git cat-file tag $tagobjid($tag)]
+ set tagcontents($tag) [exec git cat-file tag $tag]
}
}
if {[info exists tagcontents($tag)]} {