git-gui: Delete branches with 'git branch -D' to clear config
[git/git.git] / lib / branch_delete.tcl
index 86c4f73..ef1930b 100644 (file)
@@ -127,7 +127,7 @@ method _delete {} {
        foreach i $to_delete {
                set b [lindex $i 0]
                set o [lindex $i 1]
        foreach i $to_delete {
                set b [lindex $i 0]
                set o [lindex $i 1]
-               if {[catch {git update-ref -d "refs/heads/$b" $o} err]} {
+               if {[catch {git branch -D $b} err]} {
                        append failed " - $b: $err\n"
                }
        }
                        append failed " - $b: $err\n"
                }
        }