object: add repository argument to object_as_type
Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
1ec5bfd24e
commit
1268dfac1e
2
refs.c
2
refs.c
@ -305,7 +305,7 @@ enum peel_status peel_object(const struct object_id *name, struct object_id *oid
|
||||
|
||||
if (o->type == OBJ_NONE) {
|
||||
int type = oid_object_info(the_repository, name, NULL);
|
||||
if (type < 0 || !object_as_type(o, type, 0))
|
||||
if (type < 0 || !object_as_type(the_repository, o, type, 0))
|
||||
return PEEL_INVALID;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user