mirror of
https://github.com/git/git.git
synced 2024-11-06 09:13:01 +01:00
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>
This commit is contained in:
parent
dfb891e351
commit
fcacf48957
1 changed files with 1 additions and 1 deletions
2
gitk
2
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)]} {
|
||||
|
|
Loading…
Reference in a new issue