archive-*.c: use the right repository

With 'struct archive_args' gaining new repository pointer, we don't have to assume the_repository in the archive backends anymore. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Nguyễn Thái Ngọc Duy committed Aug 13, 2018 at 18:14 UTC b67b55127c3eb2a44429f6b7071ce196794d14e9
2 files changed +2 -2
archive-tar.c
+1 -1
@@ -277,7 +277,7 @@ static int write_tar_entry(struct archiver_args *args,
277 memcpy(header.name, path, pathlen);
278
279 if (S_ISREG(mode) && !args->convert &&
280 - oid_object_info(the_repository, oid, &size) == OBJ_BLOB &&
280 + oid_object_info(args->repo, oid, &size) == OBJ_BLOB &&
281 size > big_file_threshold)
282 buffer = NULL;
283 else if (S_ISLNK(mode) || S_ISREG(mode)) {
archive-zip.c
+1 -1
@@ -326,7 +326,7 @@ static int write_zip_entry(struct archiver_args *args,
326 compressed_size = 0;
327 buffer = NULL;
328 } else if (S_ISREG(mode) || S_ISLNK(mode)) {
329 - enum object_type type = oid_object_info(the_repository, oid,
329 + enum object_type type = oid_object_info(args->repo, oid,
330 &size);
331
332 method = 0;