sha1_file: convert check_sha1_signature to struct object_id
[gitweb.git] / archive-zip.c
index e2e5513c03ee9fe08593522b42431cb4ca482a8a..5841a6ceb61f7ff43e8a3d1e04475785c7a42239 100644 (file)
@@ -344,8 +344,8 @@ static int write_zip_entry(struct archiver_args *args,
                        flags |= ZIP_STREAM;
                        out = buffer = NULL;
                } else {
-                       buffer = sha1_file_to_archive(args, path, oid->hash, mode,
-                                                     &type, &size);
+                       buffer = object_file_to_archive(args, path, oid, mode,
+                                                       &type, &size);
                        if (!buffer)
                                return error("cannot read %s",
                                             oid_to_hex(oid));