From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael S. Tsirkin" Subject: [PATCH v2 2/2] send-email: add test for duplicate utf8 name Date: Thu, 20 Jun 2013 15:27:05 +0300 Message-ID: <1371731166-24015-2-git-send-email-mst@redhat.com> References: <1371731166-24015-1-git-send-email-mst@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: =?us-ascii?B?PT9VVEYtOD9xP1NaRURFUj0yMEc9QzM9QTFib3I/PQ==?= To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Thu Jun 20 14:26:40 2013 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Updwh-00019T-7h for gcvg-git-2@plane.gmane.org; Thu, 20 Jun 2013 14:26:35 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757726Ab3FTM03 convert rfc822-to-quoted-printable (ORCPT ); Thu, 20 Jun 2013 08:26:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:13571 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753085Ab3FTM03 (ORCPT ); Thu, 20 Jun 2013 08:26:29 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r5KCQJLN026383 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 20 Jun 2013 08:26:20 -0400 Received: from redhat.com (vpn-200-33.tlv.redhat.com [10.35.200.33]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r5KCQHoq007294; Thu, 20 Jun 2013 08:26:18 -0400 Content-Disposition: inline In-Reply-To: <1371731166-24015-1-git-send-email-mst@redhat.com> X-Mutt-Fcc: =sent X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Verify that author name is not duplicated if it matches sender, even if it is in utf8. Signed-off-by: Michael S. Tsirkin --- t/t9001-send-email.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/t/t9001-send-email.sh b/t/t9001-send-email.sh index 9f46f22..020acc4 100755 --- a/t/t9001-send-email.sh +++ b/t/t9001-send-email.sh @@ -956,6 +956,20 @@ test_expect_success $PREREQ 'utf8 author is correc= tly passed on' ' grep "^From: F=FC=F1n=FD N=E2m=E9 " msgtxt1 ' =20 +test_expect_success $PREREQ 'utf8 sender is not duplicated' ' + clean_fake_sendmail && + test_commit weird_sender && + test_when_finished "git reset --hard HEAD^" && + git commit --amend --author "F=FC=F1n=FD N=E2m=E9 " && + git format-patch --stdout -1 >funny_name.patch && + git send-email --from=3D"F=FC=F1n=FD N=E2m=E9 " \ + --to=3Dnobody@example.com \ + --smtp-server=3D"$(pwd)/fake.sendmail" \ + funny_name.patch && + grep "^From:" msgtxt1 > msgfrom && + test_line_count =3D 1 msgfrom +' + test_expect_success $PREREQ 'sendemail.composeencoding works' ' clean_fake_sendmail && git config sendemail.composeencoding iso-8859-1 && --=20 MST