From: Eric Sunshine Date: Mon, 15 Jul 2013 06:54:07 +0000 (-0400) Subject: t4203: demonstrate loss of uppercase characters in canonical email X-Git-Tag: v1.8.4-rc0~34^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3aff56ddbebfdb314f123e9a076403459d6a0767;p=git t4203: demonstrate loss of uppercase characters in canonical email The email addresses read from .mailmap are downcased before being inserted into the mailmap data structure, which undesirably loses information. It is impossible, for instance, to map to . Demonstrate this problem. Signed-off-by: Eric Sunshine Signed-off-by: Junio C Hamano --- diff --git a/t/t4203-mailmap.sh b/t/t4203-mailmap.sh index 8583724375..ffe6a11ac0 100755 --- a/t/t4203-mailmap.sh +++ b/t/t4203-mailmap.sh @@ -256,6 +256,15 @@ test_expect_success 'single-character name' ' test_cmp expect actual ' +test_expect_failure 'preserve canonical email case' ' + echo " 1 A U Thor " >expect && + echo " 1 nick1 " >>expect && + echo " " >.mailmap && + test_when_finished "rm .mailmap" && + git shortlog -es HEAD >actual && + test_cmp expect actual +' + # Extended mailmap configurations should give us the following output for shortlog cat >expect <<\EOF A U Thor (1):