send-email: sanitize author when writing From line
commit4cb46bddeb7d21241f8ac5e46eb3d1cee468ea14
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 18 Jun 2013 12:49:26 +0000 (18 15:49 +0300)
committerJunio C Hamano <gitster@pobox.com>
Thu, 20 Jun 2013 18:27:03 +0000 (20 11:27 -0700)
treed249f5e7571c31d61c9659851a0874ca671cc68c
parentf07075c297d8a9b58b693176b6ae73dbabcdb103
send-email: sanitize author when writing From line

sender is now sanitized, but we didn't sanitize author when checking
whether From: line is needed in the message body.

As a result git started writing duplicate From: lines when author
matched sender and has utf8 characters.

Reported-by: SZEDER Gábor <szeder@ira.uka.de>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Tested-by: SZEDER Gábor <szeder@ira.uka.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-send-email.perl
t/t9001-send-email.sh