summaryrefslogtreecommitdiff
path: root/builtin/archive.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2018-08-13 16:14:35 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-08-13 21:14:43 (GMT)
commitb612ee202a48f129f81f8f6a5af6cf71d1a9caef (patch)
tree222bec83b3a7d2e3396d486d49d3d8dcd7db678f /builtin/archive.c
parenta4009b0b452550036a5e3dd4712797d14a3284a0 (diff)
downloadgit-b612ee202a48f129f81f8f6a5af6cf71d1a9caef.zip
git-b612ee202a48f129f81f8f6a5af6cf71d1a9caef.tar.gz
git-b612ee202a48f129f81f8f6a5af6cf71d1a9caef.tar.bz2
archive.c: avoid access to the_index
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 'builtin/archive.c')
-rw-r--r--builtin/archive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/archive.c b/builtin/archive.c
index 73971d0..e74f675 100644
--- a/builtin/archive.c
+++ b/builtin/archive.c
@@ -105,5 +105,5 @@ int cmd_archive(int argc, const char **argv, const char *prefix)
setvbuf(stderr, NULL, _IOLBF, BUFSIZ);
- return write_archive(argc, argv, prefix, output, 0);
+ return write_archive(argc, argv, prefix, the_repository, output, 0);
}