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>
Eric Sunshine committed
Jul 15, 2013 at 02:54 UTC
3aff56ddbebfdb314f123e9a076403459d6a0767
1 file changed
+9
t/t4203-mailmap.sh
+9
@@ -256,6 +256,15 @@ test_expect_success 'single-character name' '
256
test_cmp expect actual
257
'
258
259
+test_expect_failure 'preserve canonical email case' '
260
+ echo " 1 A U Thor <AUTHOR@example.com>" >expect &&
261
+ echo " 1 nick1 <bugs@company.xx>" >>expect &&
262
+ echo "<AUTHOR@example.com> <author@example.com>" >.mailmap &&
263
+ test_when_finished "rm .mailmap" &&
264
+ git shortlog -es HEAD >actual &&
265
+ test_cmp expect actual
266
+'
267
+
268
# Extended mailmap configurations should give us the following output for shortlog
269
cat >expect <<\EOF
270
A U Thor <author@example.com> (1):