Merge branch 'ja/fetch-doc'
[gitweb.git] / git-gui / lib / remote_branch_delete.tcl
index 89eb0f70f289e48e2b875e2cd49eb026a266ca0e..31e09474880c8d22122334f649cfcc126bf2c82e 100644 (file)
@@ -208,15 +208,15 @@ method _delete {} {
                return
        }
 
-       if {[tk_messageBox \
-               -icon warning \
-               -type yesno \
-               -title [wm title $w] \
-               -parent $w \
-               -message [mc "Recovering deleted branches is difficult.
-
-Delete the selected branches?"]] ne yes} {
-               return
+       if {$checktype ne {head}} {
+               if {[tk_messageBox \
+                       -icon warning \
+                       -type yesno \
+                       -title [wm title $w] \
+                       -parent $w \
+                       -message [mc "Recovering deleted branches is difficult.\n\nDelete the selected branches?"]] ne yes} {
+                       return
+               }
        }
 
        destroy $w