@matheusbsbs / matheus-bagliano / commits / 6eaaccd128
Fork 0

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>

Paul Mackerras committed Aug 29, 2007 at 22:41 UTC 6eaaccd12846c5957c3433c773ad60b8a4196045
1 file changed +2 -1
gitk
+2 -1
@@ -6648,8 +6648,9 @@ proc splitarc {p} {
6648 proc addnewchild {id p} {
6649 global allids allparents allchildren idtags nextarc nbmp
6650 global arcnos arcids arctags arcout arcend arcstart archeads growing
6651 - global seeds
6651 + global seeds allcommits
6652
6653 + if {![info exists allcommits]} return
6654 lappend allids $id
6655 set allparents($id) [list $p]
6656 set allchildren($id) {}