sha1_file: convert check_sha1_signature to struct object_id
[gitweb.git] / builtin / index-pack.c
index 9744175e2314617a448a34370e3606c16209ef74..b28ebfadd433727a4d8344ecd56e458f3abc03a7 100644 (file)
@@ -1377,7 +1377,7 @@ static void fix_unresolved_deltas(struct hashfile *f)
                if (!base_obj->data)
                        continue;
 
-               if (check_sha1_signature(d->oid.hash, base_obj->data,
+               if (check_object_signature(&d->oid, base_obj->data,
                                base_obj->size, type_name(type)))
                        die(_("local object %s is corrupt"), oid_to_hex(&d->oid));
                base_obj->obj = append_obj_to_pack(f, d->oid.hash,