diff options
| author | Junio C Hamano <gitster@pobox.com> | 2018-11-06 15:50:18 +0900 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2018-11-06 15:50:18 +0900 |
| commit | a5ab66ee5f36fa3e90955f36f6451b3cf67943ed (patch) | |
| tree | cd29474c4a158cb691d5f58455b7e208150aeced /archive.c | |
| parent | Merge branch 'jc/http-curlver-warnings' (diff) | |
| parent | archive: initialize archivers earlier (diff) | |
| download | git-a5ab66ee5f36fa3e90955f36f6451b3cf67943ed.tar.gz git-a5ab66ee5f36fa3e90955f36f6451b3cf67943ed.zip | |
Merge branch 'js/remote-archive-dwimfix'
The logic to determine the archive type "git archive" uses did not
correctly kick in for "git archive --remote", which has been
corrected.
* js/remote-archive-dwimfix:
archive: initialize archivers earlier
Diffstat (limited to 'archive.c')
| -rw-r--r-- | archive.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -29,6 +29,12 @@ void register_archiver(struct archiver *ar) archivers[nr_archivers++] = ar; } +void init_archivers(void) +{ + init_tar_archiver(); + init_zip_archiver(); +} + static void format_subst(const struct commit *commit, const char *src, size_t len, struct strbuf *buf) @@ -531,9 +537,6 @@ int write_archive(int argc, const char **argv, const char *prefix, git_config_get_bool("uploadarchive.allowunreachable", &remote_allow_unreachable); git_config(git_default_config, NULL); - init_tar_archiver(); - init_zip_archiver(); - args.repo = repo; argc = parse_archive_args(argc, argv, &ar, &args, name_hint, remote); if (!startup_info->have_repository) { |
