builtin-commit: remove .git/SQUASH_MSG upon successful commit
[gitweb.git] / builtin-commit.c
index c787bed696591f58d1336a701e57414c9d5c8cbf..3a47275b8c71ba83ea68107d2430efbf58f24c6e 100644 (file)
@@ -929,6 +929,7 @@ int cmd_commit(int argc, const char **argv, const char *prefix)
 
        unlink(git_path("MERGE_HEAD"));
        unlink(git_path("MERGE_MSG"));
+       unlink(git_path("SQUASH_MSG"));
 
        if (commit_index_files())
                die ("Repository has been updated, but unable to write\n"