diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2018-09-15 18:17:37 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-09-17 09:20:06 -0700 |
commit | ce3a7ec8bd2faf49f4162356305237409a9b4c7b (patch) | |
tree | 4240e664dc1803c23541054f044984f7ea7fa05c | |
parent | Git 2.19 (diff) | |
download | tgif-ce3a7ec8bd2faf49f4162356305237409a9b4c7b.tar.xz |
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>
-rw-r--r-- | archive.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -391,7 +391,7 @@ static void parse_treeish_arg(const char **argv, if (get_oid(name, &oid)) die("Not a valid object name"); - commit = lookup_commit_reference_gently(the_repository, &oid, 1); + commit = lookup_commit_reference_gently(ar_args->repo, &oid, 1); if (commit) { commit_sha1 = commit->object.oid.hash; archive_time = commit->date; |