X-Git-Url: https://git.uis.cam.ac.uk/x/uis/git/git.git/blobdiff_plain/46931d39389f2886e6c159674923345f024e1c64..a378509e1c8d817b3abe42bd8b3c8aa2a6f9af8a:/tag.c diff --git a/tag.c b/tag.c index 3ae00ba1ab..5db870edb9 100644 --- a/tag.c +++ b/tag.c @@ -102,8 +102,7 @@ struct tag *lookup_tag(struct repository *r, const struct object_id *oid) { struct object *obj = lookup_object(r, oid); if (!obj) - return create_object(r, oid->hash, - alloc_tag_node(r)); + return create_object(r, oid, alloc_tag_node(r)); return object_as_type(r, obj, OBJ_TAG, 0); }