aboutsummaryrefslogtreecommitdiff
path: root/t/t4203-mailmap.sh
diff options
context:
space:
mode:
authorEric Sunshine <sunshine@sunshineco.com>2013-07-15 02:54:07 -0400
committerJunio C Hamano <gitster@pobox.com>2013-07-15 08:16:32 -0700
commit3aff56ddbebfdb314f123e9a076403459d6a0767 (patch)
treee46bdb206acad470d3d0e5e10deaddbbb6cd0ecf /t/t4203-mailmap.sh
parent8c3811510e2a90f765edbb6dc7f81b0737592c0a (diff)
downloadgit-3aff56ddbebfdb314f123e9a076403459d6a0767.tar.gz
git-3aff56ddbebfdb314f123e9a076403459d6a0767.tar.xz
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 <first.last@host> to <First.Last@host>. Demonstrate this problem. Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4203-mailmap.sh')
-rwxr-xr-xt/t4203-mailmap.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/t4203-mailmap.sh b/t/t4203-mailmap.sh
index 858372437..ffe6a11ac 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 <AUTHOR@example.com>" >expect &&
+ echo " 1 nick1 <bugs@company.xx>" >>expect &&
+ echo "<AUTHOR@example.com> <author@example.com>" >.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 <author@example.com> (1):