mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
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
tag.c
2
tag.c
@@ -98,7 +98,7 @@ struct tag *lookup_tag(const struct object_id *oid)
|
||||
if (!obj)
|
||||
return create_object(the_repository, oid->hash,
|
||||
alloc_tag_node(the_repository));
|
||||
return object_as_type(obj, OBJ_TAG, 0);
|
||||
return object_as_type(the_repository, obj, OBJ_TAG, 0);
|
||||
}
|
||||
|
||||
static timestamp_t parse_tag_date(const char *buf, const char *tail)
|
||||
|
||||
Reference in New Issue
Block a user