Add several uses of get_object_hash.
[gitweb.git] / builtin / index-pack.c
index 1ad1bde69600d3097d71ed67d230d2e2f916544e..b01a8c0e227c7fec7c5456aa9e29972682ac6819 100644 (file)
@@ -217,7 +217,7 @@ static unsigned check_object(struct object *obj)
 
        if (!(obj->flags & FLAG_CHECKED)) {
                unsigned long size;
-               int type = sha1_object_info(obj->sha1, &size);
+               int type = sha1_object_info(get_object_hash(*obj), &size);
                if (type <= 0)
                        die(_("did not receive expected object %s"),
                              sha1_to_hex(obj->sha1));