mirror of
https://github.com/git/git.git
synced 2024-10-31 14:27:54 +01:00
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>
This commit is contained in:
parent
df904497ec
commit
6eaaccd128
1 changed files with 2 additions and 1 deletions
3
gitk
3
gitk
|
@ -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) {}
|
||||
|
|
Loading…
Reference in a new issue