summaryrefslogtreecommitdiff
path: root/t/t5100-mailinfo.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-05-25 01:16:05 -0700
committerJunio C Hamano <gitster@pobox.com>2008-05-25 13:22:18 -0700
commit9aa23094c281d1333eecb6bb1bd84b1599197d68 (patch)
tree1964fe1a280980a19d02f13f9457b7e60f3535df /t/t5100-mailinfo.sh
parentcce8d6fdb4d7170a73763586daf6ac4f6b8fce2c (diff)
downloadgit-9aa23094c281d1333eecb6bb1bd84b1599197d68.tar.gz
mailinfo: apply the same fix not to lose NULs in BASE64 and QP codepaths
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5100-mailinfo.sh')
-rwxr-xr-xt/t5100-mailinfo.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/t5100-mailinfo.sh b/t/t5100-mailinfo.sh
index 5a4610b860..a8b78ebf7d 100755
--- a/t/t5100-mailinfo.sh
+++ b/t/t5100-mailinfo.sh
@@ -34,4 +34,13 @@ test_expect_success 'respect NULs' '
'
+test_expect_success 'Preserve NULs out of MIME encoded message' '
+
+ git mailsplit -d5 -o. ../t5100/nul-b64.in &&
+ cmp ../t5100/nul-b64.in 00001 &&
+ git mailinfo msg patch <00001 &&
+ cmp ../t5100/nul-b64.expect patch
+
+'
+
test_done