Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'nd/tree-walk-with-repo'
[gitweb.git]
/
builtin
/
reset.c
diff --git
a/builtin/reset.c
b/builtin/reset.c
index 77c38f28c2be0dcc6a953361f3f3e97c1815b1aa..fdd572168b51cc388a098008c3636ffa60856233 100644
(file)
--- a/
builtin/reset.c
+++ b/
builtin/reset.c
@@
-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;
}