After doing a merge --squash, and commit afterwards, the commit message template SQUASH_MSG in the git directory is not removed, which means that the content of SQUASH_MSG is used as default commit message for all subsequent commits. So have git commit remove the file SQUASH_MSG from the git directory upon a successful commit.
The problem was discovered by Fr�d�ric Bri�re, reported through http://bugs.debian.org/464656
Signed-off-by: Gerrit Pape <pape@smarden.org> --- builtin-commit.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
Show changes to builtin-commit.c +1 −0
diff --git a/builtin-commit.c b/builtin-commit.c index c787bed..3a47275 100644 --- 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"
-- 1.5.4