aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-02-07 15:52:12 -0800
committerJunio C Hamano <gitster@pobox.com>2010-02-07 15:52:12 -0800
commite7ec9de67639d7c1715b450f54d297cc38e25867 (patch)
tree2cd108fb5e3e836f39872a52d810a84b43f2bcf7 /t
parent8424981934c415bd20643de9cc932bd348dfb115 (diff)
parentfe12d8e84f745303d64757307e9a6a81a6608018 (diff)
downloadgit-e7ec9de67639d7c1715b450f54d297cc38e25867.tar.gz
git-e7ec9de67639d7c1715b450f54d297cc38e25867.tar.xz
Merge branch 'maint'
* maint: archive: simplify archive format guessing
Diffstat (limited to 't')
-rwxr-xr-xt/t5000-tar-tree.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/t/t5000-tar-tree.sh b/t/t5000-tar-tree.sh
index 0037f63d9..27bfba55b 100755
--- a/t/t5000-tar-tree.sh
+++ b/t/t5000-tar-tree.sh
@@ -189,6 +189,16 @@ test_expect_success 'git archive --format=zip with --output' \
'git archive --format=zip --output=d2.zip HEAD &&
test_cmp d.zip d2.zip'
+test_expect_success 'git archive with --output, inferring format' '
+ git archive --output=d3.zip HEAD &&
+ test_cmp d.zip d3.zip
+'
+
+test_expect_success 'git archive with --output, override inferred format' '
+ git archive --format=tar --output=d4.zip HEAD &&
+ test_cmp b.tar d4.zip
+'
+
$UNZIP -v >/dev/null 2>&1
if [ $? -eq 127 ]; then
say "Skipping ZIP tests, because unzip was not found"