Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
builtin-commit: remove .git/SQUASH_MSG upon successful commit
[gitweb.git]
/
builtin-commit.c
diff --git
a/builtin-commit.c
b/builtin-commit.c
index c787bed696591f58d1336a701e57414c9d5c8cbf..3a47275b8c71ba83ea68107d2430efbf58f24c6e 100644
(file)
--- a/
builtin-commit.c
+++ b/
builtin-commit.c
@@
-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"