diff options
author | Đoàn Trần Công Danh <congdanhqx@gmail.com> | 2021-05-09 20:12:11 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-05-10 09:06:22 +0300 |
commit | f1aa29944320e51441e5b5e32591e69f2fa74de2 (patch) | |
tree | e91b0c0cc616a2f3d3c82f8595d2c2bf05b2f536 /t/t5100-mailinfo.sh | |
parent | 0b689562cafc05b1a36bdea3d025c9ecdf2514bd (diff) |
mailinfo: allow squelching quoted CRLF warning
In previous change, Git starts to warn for quoted CRLF in decoded
base64/QP email. Despite those warnings are usually helpful,
quoted CRLF could be part of some users' workflow.
Let's give them an option to turn off the warning completely.
Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5100-mailinfo.sh')
-rwxr-xr-x | t/t5100-mailinfo.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/t/t5100-mailinfo.sh b/t/t5100-mailinfo.sh index ac6fbfe596..1ecefa381d 100755 --- a/t/t5100-mailinfo.sh +++ b/t/t5100-mailinfo.sh @@ -255,7 +255,11 @@ test_expect_success 'mailinfo warn CR in base64 encoded email' ' check_quoted_cr_mail quoted-cr/0001 && test_must_be_empty quoted-cr/0001.err && check_quoted_cr_mail quoted-cr/0002 && - grep "quoted CRLF detected" quoted-cr/0002.err + grep "quoted CRLF detected" quoted-cr/0002.err && + check_quoted_cr_mail quoted-cr/0001 --quoted-cr=nowarn && + test_must_be_empty quoted-cr/0001.err && + check_quoted_cr_mail quoted-cr/0002 --quoted-cr=nowarn && + test_must_be_empty quoted-cr/0002.err ' test_done |