Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
restore: reject invalid combinations with --staged
[gitweb.git]
/
builtin
/
reset.c
diff --git
a/builtin/reset.c
b/builtin/reset.c
index 7882829a95d8294ea5bb5bcba3335e651233d79a..6d9397c84434c4ba09874a1146095d3d396e045c 100644
(file)
--- a/
builtin/reset.c
+++ b/
builtin/reset.c
@@
-420,7
+420,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;
}