sha1_file: convert sha1_object_info* to object_id
[gitweb.git] / builtin / unpack-objects.c
index 9f96949bc02be374382283cf1f35ac9ec946da2f..6d553374c08cd98ca37ea2f53e3a9311e8192e04 100644 (file)
@@ -198,7 +198,7 @@ static int check_object(struct object *obj, int type, void *data, struct fsck_op
 
        if (!(obj->flags & FLAG_OPEN)) {
                unsigned long size;
-               int type = sha1_object_info(obj->oid.hash, &size);
+               int type = oid_object_info(&obj->oid, &size);
                if (type != obj->type || type <= 0)
                        die("object of unexpected type");
                obj->flags |= FLAG_WRITTEN;