Merge branch 'nd/tree-walk-with-repo'
[gitweb.git] / builtin / reset.c
index 77c38f28c2be0dcc6a953361f3f3e97c1815b1aa..fdd572168b51cc388a098008c3636ffa60856233 100644 (file)
@@ -421,7 +421,7 @@ int cmd_reset(int argc, const char **argv, const char *prefix)
                        print_new_head_line(lookup_commit_reference(the_repository, &oid));
        }
        if (!pathspec.nr)
-               remove_branch_state(the_repository);
+               remove_branch_state(the_repository, 0);
 
        return update_ref_status;
 }