packfile: add repository argument to unpack_entry
[gitweb.git] / pack-bitmap-write.c
index e01f9928840488b85db2ebc62527d8e4aab81ffc..cd1903e717a141a0e8e695dd6750092af27120fe 100644 (file)
@@ -73,8 +73,8 @@ void bitmap_writer_build_type_index(struct pack_idx_entry **index,
                        break;
 
                default:
-                       real_type = sha1_object_info(entry->idx.oid.hash,
-                                                    NULL);
+                       real_type = oid_object_info(the_repository,
+                                                   &entry->idx.oid, NULL);
                        break;
                }