Files
git/builtin
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-09-17 13:53:52 -07:00
2018-08-27 14:33:43 -07:00
2018-10-19 13:34:02 +09:00
2018-05-13 10:45:05 +09:00
2018-08-15 15:08:23 -07:00
2018-08-20 15:31:40 -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-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
2018-09-17 13:49:41 -07:00
2018-10-16 16:16:02 +09:00
2018-10-19 13:34:06 +09:00
2018-10-19 13:34:02 +09:00
2018-05-23 14:38:15 +09:00
2018-10-19 13:34:02 +09:00
2018-10-19 13:34:02 +09:00
2018-05-30 14:04:05 +09: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-10-19 13:34:02 +09:00
2018-08-27 14:33:43 -07:00
2018-10-19 13:34:02 +09: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-10-19 13:34:02 +09: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-05-29 00:28:22 +09:00
2018-08-29 11:32:49 -07:00
2018-10-19 13:34:02 +09:00