Josh Steadmon
00436bf1b1
archive: initialize archivers earlier
...
Initialize archivers as soon as possible when running git-archive.
Various non-obvious behavior depends on having the archivers
initialized, such as determining the desired archival format from the
provided filename.
Since 08716b3c11 ("archive: refactor file extension format-guessing",
2011-06-21), archive_format_from_filename() has used the registered
archivers to match filenames (provided via --output) to archival
formats. However, when git-archive is executed with --remote, format
detection happens before the archivers have been registered. This causes
archives from remotes to always be generated as TAR files, regardless of
the actual filename (unless an explicit --format is provided).
This patch fixes that behavior; archival format is determined properly
from the output filename, even when --remote is used.
Helped-by: Jeff King <peff@peff.net >
Signed-off-by: Josh Steadmon <steadmon@google.com >
Signed-off-by: Junio C Hamano <gitster@pobox.com >
2018-10-26 10:17:59 +09:00
..
2018-10-19 13:34:02 +09:00
2018-10-19 13:34:03 +09:00
2018-08-13 14:14:44 -07:00
2018-10-26 10:17:59 +09:00
2017-11-13 10:51:14 +09:00
2018-09-21 09:51:19 -07:00
2018-09-17 13:53:52 -07:00
2017-03-21 11:18:41 -07:00
2018-09-21 09:48:10 -07:00
2018-09-12 15:15:34 -07:00
2018-02-12 13:09:35 -08:00
2017-06-15 12:56:22 -07:00
2017-11-15 12:04:57 +09:00
2018-08-27 14:33:43 -07:00
2018-10-19 13:34:02 +09:00
2018-08-13 14:14:42 -07:00
2018-09-17 13:53:47 -07:00
2018-05-13 10:45:05 +09:00
2018-10-19 13:34:07 +09:00
2018-06-29 10:43:39 -07:00
2018-10-19 13:34:03 +09:00
2018-08-15 15:08:23 -07:00
2018-08-20 15:31:40 -07:00
2017-05-30 14:45:03 +09:00
2018-10-19 13:34:02 +09:00
2018-09-21 09:51:19 -07:00
2018-09-21 09:51:19 -07:00
2018-09-21 09:51:19 -07:00
2018-10-19 13:34:02 +09:00
2018-10-19 13:34:02 +09:00
2018-10-19 13:34:02 +09:00
2018-05-08 15:59:16 +09:00
2018-10-19 13:34:07 +09:00
2018-10-19 13:34:02 +09:00
2017-10-04 11:35:29 +09:00
2018-09-17 13:49:41 -07:00
2018-10-16 16:16:02 +09:00
2017-09-27 15:45:24 +09:00
2018-10-19 13:34:06 +09:00
2018-09-21 09:48:11 -07:00
2018-10-03 21:23:51 -07:00
2018-08-29 11:32:49 -07:00
2018-07-24 10:19:29 -07:00
2018-08-23 10:08:51 -07:00
2018-10-19 13:34:02 +09:00
2018-08-13 14:14:43 -07:00
2018-05-23 14:38:15 +09:00
2018-05-16 11:42:03 +09:00
2017-03-21 11:18:41 -07:00
2017-05-08 12:18:19 +09:00
2018-07-20 15:38:54 -07:00
2017-06-15 12:56:22 -07:00
2017-03-26 22:08:21 -07:00
2017-11-09 14:31:27 +09:00
2018-07-16 14:27:39 -07:00
2018-10-19 13:34:02 +09:00
2018-10-19 13:34:02 +09:00
2018-05-16 11:42:03 +09:00
2018-05-16 11:42:03 +09:00
2018-09-17 13:49:38 -07:00
2018-05-30 14:04:05 +09:00
2018-06-29 10:43:39 -07:00
2018-07-18 12:20:28 -07:00
2018-10-19 13:34:02 +09:00
2018-08-20 15:31:40 -07:00
2018-04-12 11:38:56 +09:00
2017-06-15 12:56:22 -07:00
2018-08-14 12:29:57 -07:00
2018-09-21 09:51:19 -07:00
2018-10-19 13:34:02 +09:00
2018-08-27 14:33:43 -07:00
2018-10-19 13:34:02 +09:00
2018-08-17 13:09:56 -07:00
2018-04-26 12:28:43 +09:00
2018-10-19 13:34:08 +09:00
2018-09-21 09:51:19 -07:00
2017-09-22 12:49:57 +09:00
2017-05-30 14:45:04 +09:00
2018-09-24 10:30:52 -07:00
2018-09-17 13:53:55 -07:00
2018-10-19 13:34:02 +09:00
2018-10-19 13:34:02 +09:00
2018-09-21 09:48:10 -07:00
2018-10-19 13:34:02 +09:00
2018-07-20 15:38:54 -07:00
2018-09-21 09:51:19 -07:00
2018-08-29 11:32:49 -07:00
2018-08-27 14:33:43 -07:00
2018-03-15 12:01:08 -07:00
2018-09-21 09:51:19 -07:00
2018-08-29 11:32:49 -07:00
2018-05-29 00:28:22 +09:00
2018-05-16 11:42:03 +09:00
2017-06-15 12:56:22 -07:00
2018-10-19 13:34:02 +09:00
2017-11-06 10:31:08 +09:00
2018-08-29 11:32:49 -07:00
2018-05-16 11:42:03 +09:00
2018-08-29 11:32:49 -07:00
2018-10-19 13:34:02 +09:00
2018-09-12 15:17:17 -07:00
2018-02-09 10:24:50 -08:00
2018-10-26 10:17:59 +09:00
2018-07-18 15:45:14 -07:00
2017-06-15 12:56:22 -07:00
2018-06-29 10:43:39 -07:00
2017-06-15 12:56:22 -07:00
2018-04-09 06:14:45 +09:00
2018-08-30 09:28:02 -07:00
2018-08-17 13:09:56 -07:00