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>
This commit is contained in:

committed by
Junio C Hamano

parent
69d2cfe6e8
commit
4edce1729a
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user