mirror of
https://github.com/git/git.git
synced 2025-04-01 22:50:47 +00:00
gitk: Fix bug in the anc_or_desc routine
I missed the case where both nodes have no children and therefore have no incoming arcs. This fixes it. Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
parent
4fb0fa197e
commit
69c0b5d240
3
gitk
3
gitk
@ -6261,7 +6261,8 @@ proc anc_or_desc {a b} {
|
||||
# Both are on the same arc(s); either both are the same BMP,
|
||||
# or if one is not a BMP, the other is also not a BMP or is
|
||||
# the BMP at end of the arc (and it only has 1 incoming arc).
|
||||
if {$a eq $b} {
|
||||
# Or both can be BMPs with no incoming arcs.
|
||||
if {$a eq $b || $arcnos($a) eq {}} {
|
||||
return 0
|
||||
}
|
||||
# assert {[llength $arcnos($a)] == 1}
|
||||
|
Loading…
x
Reference in New Issue
Block a user