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:
Stefan Beller
2018-06-28 18:21:54 -07:00
committed by Junio C Hamano
parent 1ec5bfd24e
commit 1268dfac1e
8 changed files with 10 additions and 9 deletions

2
refs.c
View File

@ -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;
}