summaryrefslogtreecommitdiff
path: root/builtin/reset.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2018-11-10 05:49:00 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-11-12 05:50:06 (GMT)
commit4edce1729a257ec9a420ff108e3b832b14d113c5 (patch)
tree2817074b84529ad92894041c1db4cadc3f95e2cd /builtin/reset.c
parent69d2cfe6e84fbcd77872191b6f433d38362c23d6 (diff)
downloadgit-4edce1729a257ec9a420ff108e3b832b14d113c5.zip
git-4edce1729a257ec9a420ff108e3b832b14d113c5.tar.gz
git-4edce1729a257ec9a420ff108e3b832b14d113c5.tar.bz2
branch.c: remove the_repository reference
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/reset.c')
-rw-r--r--builtin/reset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/reset.c b/builtin/reset.c
index 6d37a35..5b4bbb0 100644
--- a/builtin/reset.c
+++ b/builtin/reset.c
@@ -400,7 +400,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();
+ remove_branch_state(the_repository);
return update_ref_status;
}