3 test_description
='respect crlf in git archive'
5 TEST_PASSES_SANITIZE_LEAK
=true
8 test_expect_success setup
'
10 git config core.autocrlf true &&
12 printf "CRLF line ending\r\nAnd another\r\n" > sample &&
20 test_expect_success
'tar archive' '
22 git archive --format=tar HEAD |
23 ( mkdir untarred && cd untarred && "$TAR" -xf - ) &&
25 test_cmp sample untarred/sample
29 test_expect_success UNZIP
'zip archive' '
31 git archive --format=zip HEAD >test.zip &&
33 ( mkdir unzipped && cd unzipped && "$GIT_UNZIP" ../test.zip ) &&
35 test_cmp sample unzipped/sample