Skip to content

Commit 53cda8d

Browse files
committed
gitk: Fix a couple of buglets in the branch head menu items
This fixes a silly typo (an extra a) and fixes the condition for asking for confirmation of removing a branch. Signed-off-by: Paul Mackerras <[email protected]>
1 parent 1029915 commit 53cda8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gitk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5124,7 +5124,7 @@ proc cobranch {} {
51245124
error_popup $err
51255125
} else {
51265126
notbusy checkout
5127-
set maainhead $headmenuhead
5127+
set mainhead $headmenuhead
51285128
if {[info exists headids($oldmainhead)]} {
51295129
redrawtags $headids($oldmainhead)
51305130
}
@@ -5142,7 +5142,7 @@ proc rmbranch {} {
51425142
error_popup "Cannot delete the currently checked-out branch"
51435143
return
51445144
}
5145-
if {$desc_heads($id) eq $id} {
5145+
if {$desc_heads($id) eq $id && $idheads($id) eq [list $head]} {
51465146
# the stuff on this branch isn't on any other branch
51475147
if {![confirm_popup "The commits on branch $head aren't on any other\
51485148
branch.\nReally delete branch $head?"]} return

0 commit comments

Comments
 (0)