sha1_file: convert sha1_object_info* to object_id
[gitweb.git] / builtin / fsck.c
index eae018e3fb06c1a9c1bd472fc077869aafbc5693..09225586835eb872ea0152018f1f85dc23f63710 100644 (file)
@@ -65,7 +65,7 @@ static const char *printable_type(struct object *obj)
        const char *ret;
 
        if (obj->type == OBJ_NONE) {
-               enum object_type type = sha1_object_info(obj->oid.hash, NULL);
+               enum object_type type = oid_object_info(&obj->oid, NULL);
                if (type > 0)
                        object_as_type(obj, type, 0);
        }