tree-walk.c: remove the_repo from get_tree_entry()
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
5e57580733
commit
50ddb089ff
@ -179,7 +179,7 @@ static int check_local_mod(struct object_id *head, int index_only)
|
||||
* way as changed from the HEAD.
|
||||
*/
|
||||
if (no_head
|
||||
|| get_tree_entry(head, name, &oid, &mode)
|
||||
|| get_tree_entry(the_repository, head, name, &oid, &mode)
|
||||
|| ce->ce_mode != create_ce_mode(mode)
|
||||
|| !oideq(&ce->oid, &oid))
|
||||
staged_changes = 1;
|
||||
|
Reference in New Issue
Block a user