3 test_description
='format-patch -s should force MIME encoding as needed'
5 TEST_PASSES_SANITIZE_LEAK
=true
8 test_expect_success setup
'
12 git commit -m initial &&
16 git commit -m "This adds some lines to F" F
20 test_expect_success
'format normally' '
22 git format-patch --stdout -1 >output &&
23 ! grep Content-Type output
27 test_expect_success
'format with signoff without funny signer name' '
29 git format-patch -s --stdout -1 >output &&
30 ! grep Content-Type output
34 test_expect_success
'format with non ASCII signer name' '
36 GIT_COMMITTER_NAME="はまの ふにおう" \
37 git format-patch -s --stdout -1 >output &&
38 grep Content-Type output
42 test_expect_success
'attach and signoff do not duplicate mime headers' '
44 GIT_COMMITTER_NAME="はまの ふにおう" \
45 git format-patch -s --stdout -1 --attach >output &&
46 test $(grep -ci ^MIME-Version: output) = 1