diff options
author | Paul Mackerras <paulus@samba.org> | 2006-08-02 19:43:34 +1000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-08-02 19:43:34 +1000 |
commit | 53cda8d97e6ee53cc8defa8c7226f0b3093eb12a (patch) | |
tree | b79dafaf2439c06dcb32f268a4e1b0b5dbcb3eab /gitk | |
parent | 10299152ca10107a4570764286e129572ed2f3c3 (diff) | |
download | git-53cda8d97e6ee53cc8defa8c7226f0b3093eb12a.tar.gz |
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 <paulus@samba.org>
Diffstat (limited to 'gitk')
-rwxr-xr-x | gitk | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -5124,7 +5124,7 @@ proc cobranch {} { error_popup $err } else { notbusy checkout - set maainhead $headmenuhead + set mainhead $headmenuhead if {[info exists headids($oldmainhead)]} { redrawtags $headids($oldmainhead) } @@ -5142,7 +5142,7 @@ proc rmbranch {} { error_popup "Cannot delete the currently checked-out branch" return } - if {$desc_heads($id) eq $id} { + if {$desc_heads($id) eq $id && $idheads($id) eq [list $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 |