archive.c: remove implicit dependency the_repository

The new "repo" field in archive_args has been added since b612ee202a (archive.c: avoid access to the_index - 2018-08-13). Use it instead of hard coding the_repository. 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 Sep 15, 2018 at 18:17 UTC ce3a7ec8bd2faf49f4162356305237409a9b4c7b
1 file changed +1 -1
archive.c
+1 -1
@@ -391,7 +391,7 @@ static void parse_treeish_arg(const char **argv,
391 if (get_oid(name, &oid))
392 die("Not a valid object name");
393
394 - commit = lookup_commit_reference_gently(the_repository, &oid, 1);
394 + commit = lookup_commit_reference_gently(ar_args->repo, &oid, 1);
395 if (commit) {
396 commit_sha1 = commit->object.oid.hash;
397 archive_time = commit->date;