]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/tag.c
sha1_file: convert sha1_object_info* to object_id
[thirdparty/git.git] / builtin / tag.c
index 644e6888be2ef609f26acaadcefa5c5e8226b5fe..11a9883d272053464e9617c195981db21da6772e 100644 (file)
@@ -212,7 +212,7 @@ static void create_tag(const struct object_id *object, const char *tag,
        struct strbuf header = STRBUF_INIT;
        char *path = NULL;
 
-       type = sha1_object_info(object->hash, NULL);
+       type = oid_object_info(object, NULL);
        if (type <= OBJ_NONE)
            die(_("bad object type."));
 
@@ -298,7 +298,7 @@ static void create_reflog_msg(const struct object_id *oid, struct strbuf *sb)
        }
 
        strbuf_addstr(sb, " (");
-       type = sha1_object_info(oid->hash, NULL);
+       type = oid_object_info(oid, NULL);
        switch (type) {
        default:
                strbuf_addstr(sb, "object of unknown type");