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
@ -601,7 +601,7 @@ static struct cache_entry *read_one_ent(const char *which,
|
||||
struct object_id oid;
|
||||
struct cache_entry *ce;
|
||||
|
||||
if (get_tree_entry(ent, path, &oid, &mode)) {
|
||||
if (get_tree_entry(the_repository, ent, path, &oid, &mode)) {
|
||||
if (which)
|
||||
error("%s: not in %s branch.", path, which);
|
||||
return NULL;
|
||||
|
Reference in New Issue
Block a user