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 >test.tar &&
24 "$TAR" xf test.tar -C untarred &&
26 test_cmp sample untarred/sample
30 test_expect_success UNZIP
'zip archive' '
32 git archive --format=zip HEAD >test.zip &&
37 "$GIT_UNZIP" ../test.zip
40 test_cmp sample unzipped/sample