summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/commit.tcl4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/commit.tcl b/lib/commit.tcl
index 75b13a0d99..6b86f9808e 100644
--- a/lib/commit.tcl
+++ b/lib/commit.tcl
@@ -379,6 +379,10 @@ A rescan will be automatically started now.
$ui_comm delete 0.0 end
$ui_comm edit reset
$ui_comm edit modified false
+ if {$::GITGUI_BCK_exists} {
+ catch {file delete [gitdir GITGUI_BCK]}
+ set $::GITGUI_BCK_exists 0
+ }
if {[is_enabled singlecommit]} do_quit