summaryrefslogtreecommitdiff
path: root/t/t4021-format-patch-signer-mime.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/t4021-format-patch-signer-mime.sh')
-rwxr-xr-xt/t4021-format-patch-signer-mime.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/t/t4021-format-patch-signer-mime.sh b/t/t4021-format-patch-signer-mime.sh
index 67a70fa..ba43f18 100755
--- a/t/t4021-format-patch-signer-mime.sh
+++ b/t/t4021-format-patch-signer-mime.sh
@@ -32,11 +32,19 @@ test_expect_success 'format with signoff without funny signer name' '
test_expect_success 'format with non ASCII signer name' '
- GIT_COMMITTER_NAME="はまの ふにおう瘢雹" \
+ GIT_COMMITTER_NAME=" " \
git format-patch -s --stdout -1 >output &&
grep Content-Type output
'
+test_expect_success 'attach and signoff do not duplicate mime headers' '
+
+ GIT_COMMITTER_NAME=" " \
+ git format-patch -s --stdout -1 --attach >output &&
+ test `grep -ci ^MIME-Version: output` = 1
+
+'
+
test_done