]> git.ipfire.org Git - thirdparty/git.git/blobdiff - branch.c
Revert "reset: Make reset remove the sequencer state"
[thirdparty/git.git] / branch.c
index d8098762f62a9dfb991f64702d34047182cfa951..a6b6722e24bc196a54be5ab1240e8932e53483e2 100644 (file)
--- a/branch.c
+++ b/branch.c
@@ -3,7 +3,6 @@
 #include "refs.h"
 #include "remote.h"
 #include "commit.h"
-#include "sequencer.h"
 
 struct tracking {
        struct refspec spec;
@@ -241,10 +240,10 @@ void create_branch(const char *head,
 void remove_branch_state(void)
 {
        unlink(git_path("CHERRY_PICK_HEAD"));
+       unlink(git_path("REVERT_HEAD"));
        unlink(git_path("MERGE_HEAD"));
        unlink(git_path("MERGE_RR"));
        unlink(git_path("MERGE_MSG"));
        unlink(git_path("MERGE_MODE"));
        unlink(git_path("SQUASH_MSG"));
-       remove_sequencer_state(0);
 }