commit/reset: try to clean up sequencer state
[gitweb.git] / builtin / commit.c
index 2986553d5ffb97f0798e4d4eb921073439fb9a92..9df3414d80509a3cb961a157a30413a15ba0e4b0 100644 (file)
@@ -1657,8 +1657,7 @@ int cmd_commit(int argc, const char **argv, const char *prefix)
                die("%s", err.buf);
        }
 
-       unlink(git_path_cherry_pick_head(the_repository));
-       unlink(git_path_revert_head(the_repository));
+       sequencer_post_commit_cleanup(the_repository);
        unlink(git_path_merge_head(the_repository));
        unlink(git_path_merge_msg(the_repository));
        unlink(git_path_merge_mode(the_repository));