Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 3aff56d

Browse files
sunshinecogitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8c38115 commit 3aff56d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

t/t4203-mailmap.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,15 @@ test_expect_success 'single-character name' '
256256
test_cmp expect actual
257257
'
258258

259+
test_expect_failure 'preserve canonical email case' '
260+
echo " 1 A U Thor <[email protected]>" >expect &&
261+
echo " 1 nick1 <[email protected]>" >>expect &&
262+
echo "<[email protected]> <[email protected]>" >.mailmap &&
263+
test_when_finished "rm .mailmap" &&
264+
git shortlog -es HEAD >actual &&
265+
test_cmp expect actual
266+
'
267+
259268
# Extended mailmap configurations should give us the following output for shortlog
260269
cat >expect <<\EOF
261270
A U Thor <[email protected]> (1):

0 commit comments

Comments
 (0)