X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=t%2Ft5000-tar-tree.sh;h=27bfba55bd9631a666ee382b343c3c04af1ad26d;hb=4503bd5c3732b142667e14d214c21c46e8f3eeaa;hp=0037f63d91a7c11f6599a99e76840a0cdbf4c779;hpb=37ce6b12ac0eb20c14a84231a0a398e8f9c1f8e8;p=git.git 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"