refspec: convert valid_fetch_refspec to use parse_refspec
[gitweb.git] / pack-bitmap-write.c
index db4c832428b4699279bf2d31e79651e18cbbc322..9d1bb054bbbee6631bc2c9acae529da813548367 100644 (file)
@@ -73,8 +73,7 @@ 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(&entry->idx.oid, NULL);
                        break;
                }