Merge branch 'rs/include-comments-before-the-function-header'
[gitweb.git] / builtin / am.c
index 92c48535052c2e32e46eeedfc86b009e7ae0726c..02853b3e05bfef638963dbfe91a7eccf3d40b9e6 100644 (file)
@@ -2148,7 +2148,7 @@ static void am_abort(struct am_state *state)
                           has_curr_head ? &curr_head : NULL, 0,
                           UPDATE_REFS_DIE_ON_ERR);
        else if (curr_branch)
-               delete_ref(NULL, curr_branch, NULL, REF_NODEREF);
+               delete_ref(NULL, curr_branch, NULL, REF_NO_DEREF);
 
        free(curr_branch);
        am_destroy(state);