Merge branch 'js/msys2'
[gitweb.git] / builtin / index-pack.c
index 48b470dd7add76223b36860a47c7cab57eabfeb0..6a015095877a8d201e68348ecd76ddc5331af357 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(get_object_hash(*obj), &size);
+               int type = sha1_object_info(obj->oid.hash, &size);
                if (type <= 0)
                        die(_("did not receive expected object %s"),
                              oid_to_hex(&obj->oid));