mirror of
https://github.com/git/git.git
synced 2024-11-25 10:54:00 +08:00
gitk: Fix bug in fix for warning when removing a branch
My fix in commit b1054ac985
was only
half-right, since it ignored the case where the descendent heads of
the head being removed correspond to two or more different commits.
This fixes it. Reported by Mark Levedahl.
Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
parent
e8b5f4be70
commit
d7b16113a1
2
gitk
2
gitk
@ -6208,7 +6208,7 @@ proc rmbranch {} {
|
||||
return
|
||||
}
|
||||
set dheads [descheads $id]
|
||||
if {$idheads($dheads) eq $head} {
|
||||
if {[llength $dheads] == 1 && $idheads($dheads) eq $head} {
|
||||
# the stuff on this branch isn't on any other branch
|
||||
if {![confirm_popup "The commits on branch $head aren't on any other\
|
||||
branch.\nReally delete branch $head?"]} return
|
||||
|
Loading…
Reference in New Issue
Block a user