diff options
author | Paul Mackerras <paulus@samba.org> | 2007-08-29 22:41:34 +1000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-08-29 22:41:46 +1000 |
commit | 6eaaccd12846c5957c3433c773ad60b8a4196045 (patch) | |
tree | 5ba7b283c00f8b09a9ea1ff9e847a7dc5a098bad /gitk | |
parent | df904497ecc15382199045bb257250c857f04eca (diff) | |
download | git-6eaaccd12846c5957c3433c773ad60b8a4196045.tar.gz git-6eaaccd12846c5957c3433c773ad60b8a4196045.tar.xz |
gitk: Fix bug causing undefined variable error when cherry-picking
When "Show nearby tags" is turned off and the user did a cherry-pick,
we were trying to access variables relating to the descendent/ancestor
tag & head computations in addnewchild though they hadn't been set.
This makes sure we don't do that. Reported by Johannes Sixt.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'gitk')
-rwxr-xr-x | gitk | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -6648,8 +6648,9 @@ proc splitarc {p} { proc addnewchild {id p} { global allids allparents allchildren idtags nextarc nbmp global arcnos arcids arctags arcout arcend arcstart archeads growing - global seeds + global seeds allcommits + if {![info exists allcommits]} return lappend allids $id set allparents($id) [list $p] set allchildren($id) {} |