Code

gitk: Fix display of newly-created tags
authorDave Dulson <dave@dulson.com>
Sun, 3 Jan 2010 14:56:25 +0000 (14:56 +0000)
committerPaul Mackerras <paulus@samba.org>
Tue, 12 Jan 2010 11:04:46 +0000 (22:04 +1100)
commitfcacf489577e225d78b290290765775c62c56464
treeb42786eb557ea8217698d9addbb2ec313bb5ed2a
parentdfb891e35100cf78873c5cf81ffe778dbe235ef5
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>
gitk