]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t5100-mailinfo.sh
The sixth batch for 2.26
[thirdparty/git.git] / t / t5100-mailinfo.sh
index 9690dcad4fd5ba0148b3f6a709ab321976545db0..147e616533cfd77baa318d37fd85ebd092c141e6 100755 (executable)
@@ -213,4 +213,19 @@ test_expect_failure 'mailinfo -b separated double [PATCH]' '
        test z"$subj" = z"Subject: [other] message"
 '
 
+test_expect_success 'mailinfo handles unusual header whitespace' '
+       git mailinfo /dev/null /dev/null >actual <<-\EOF &&
+       From:Real Name <user@example.com>
+       Subject:    extra spaces
+       EOF
+
+       cat >expect <<-\EOF &&
+       Author: Real Name
+       Email: user@example.com
+       Subject: extra spaces
+
+       EOF
+       test_cmp expect actual
+'
+
 test_done