Convert struct object to object_id
[gitweb.git] / tag.c
diff --git a/tag.c b/tag.c
index 094616e3f1aae571fc8de925dd6ce94677776aa7..ac014837ce3ba9908a285b76cc93b425a69e36d7 100644 (file)
--- a/tag.c
+++ b/tag.c
@@ -130,11 +130,11 @@ int parse_tag(struct tag *item)
        data = read_sha1_file(get_object_hash(item->object), &type, &size);
        if (!data)
                return error("Could not read %s",
-                            sha1_to_hex(item->object.sha1));
+                            oid_to_hex(&item->object.oid));
        if (type != OBJ_TAG) {
                free(data);
                return error("Object %s not a tag",
-                            sha1_to_hex(item->object.sha1));
+                            oid_to_hex(&item->object.oid));
        }
        ret = parse_tag_buffer(item, data, size);
        free(data);