summaryrefslogtreecommitdiff
path: root/archive-tar.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2018-08-13 16:14:36 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-08-13 21:14:44 (GMT)
commitb67b55127c3eb2a44429f6b7071ce196794d14e9 (patch)
tree3179483856f0bf8ed9af1b54757b28b1daeb6fcf /archive-tar.c
parentb612ee202a48f129f81f8f6a5af6cf71d1a9caef (diff)
downloadgit-b67b55127c3eb2a44429f6b7071ce196794d14e9.zip
git-b67b55127c3eb2a44429f6b7071ce196794d14e9.tar.gz
git-b67b55127c3eb2a44429f6b7071ce196794d14e9.tar.bz2
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>
Diffstat (limited to 'archive-tar.c')
-rw-r--r--archive-tar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/archive-tar.c b/archive-tar.c
index 7df8565..69ff23d 100644
--- a/archive-tar.c
+++ b/archive-tar.c
@@ -277,7 +277,7 @@ static int write_tar_entry(struct archiver_args *args,
memcpy(header.name, path, pathlen);
if (S_ISREG(mode) && !args->convert &&
- oid_object_info(the_repository, oid, &size) == OBJ_BLOB &&
+ oid_object_info(args->repo, oid, &size) == OBJ_BLOB &&
size > big_file_threshold)
buffer = NULL;
else if (S_ISLNK(mode) || S_ISREG(mode)) {