summaryrefslogtreecommitdiff
path: root/tag.c
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-06-29 01:21:54 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-06-29 17:43:38 (GMT)
commit1268dfac1e98e973c63abb142551c64bba6a44ca (patch)
tree44faa405757f42165cffdd0b55c4f836d0a6e652 /tag.c
parent1ec5bfd24e57c8d40d3f7d911fb9b85723282a46 (diff)
downloadgit-1268dfac1e98e973c63abb142551c64bba6a44ca.zip
git-1268dfac1e98e973c63abb142551c64bba6a44ca.tar.gz
git-1268dfac1e98e973c63abb142551c64bba6a44ca.tar.bz2
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>
Diffstat (limited to 'tag.c')
-rw-r--r--tag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tag.c b/tag.c
index 1b95eb9..a14a4f2 100644
--- a/tag.c
+++ b/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)