sha1_file: convert sha1_object_info* to object_id
[gitweb.git] / reachable.c
index 191ebe3e6a99d26913a510967a9545f53db58bc8..404e1440e96b23abb3e4919fdda110e89fff7626 100644 (file)
@@ -77,7 +77,7 @@ static void add_recent_object(const struct object_id *oid,
         * later processing, and the revision machinery expects
         * commits and tags to have been parsed.
         */
-       type = sha1_object_info(oid->hash, NULL);
+       type = oid_object_info(oid, NULL);
        if (type < 0)
                die("unable to get object info for %s", oid_to_hex(oid));