revert: Remove sequencer state when no commits are pending
[gitweb.git] / branch.c
index c0c865a4b1b0fca038f32b77f2239d7987438ff5..d06aec4637ca26a473d7cb45ecc97114db656db1 100644 (file)
--- a/branch.c
+++ b/branch.c
@@ -3,6 +3,7 @@
 #include "refs.h"
 #include "remote.h"
 #include "commit.h"
+#include "sequencer.h"
 
 struct tracking {
        struct refspec spec;
@@ -228,4 +229,5 @@ void remove_branch_state(void)
        unlink(git_path("MERGE_MSG"));
        unlink(git_path("MERGE_MODE"));
        unlink(git_path("SQUASH_MSG"));
+       remove_sequencer_state(0);
 }