From nobody Sat May 4 04:02:28 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+52014+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+52014+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1575656131; cv=none; d=zohomail.com; s=zohoarc; b=F1dZquvxwAGKyL8s7MALHForQ1bOIToZNL0XdmVbClj5br0x53LMC/PHzRYKHFlFSCCEDeJISiA/goSuc5n82nKJFb7/qUyfHLY+8E2FFU8Ygp/dKBuXpMcb7RC0+Cy3cz/Fl1YY401+ajlJ7WZY4HVy9EtJz2vr8VIT5h+Pf2I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1575656131; h=Content-Transfer-Encoding:Cc:Date:From:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=biaUkggR6165S9qkfC015gjGsWXHmazd43vxCoYlW2M=; b=anQouZpEBikHCWHSaWFU0/5qEEkml1od3b4GLOaCMuc1wcYUi5UdgUhzrJ8BFF5agqLvlKcCrE10BrYJUc5SZkNIT/8KYQoY5S3a8h3cxDd7I0tDIXTeGFCkXy4Bq0EcIgrC54YS+vj0cyh3pZR3aopYOPM3YxK7LT0gfGts5Dg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+52014+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1575656131789510.9506919736326; Fri, 6 Dec 2019 10:15:31 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id aaaaYY1788612xaaaaaaaaaa; Fri, 06 Dec 2019 10:15:30 -0800 X-Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mx.groups.io with SMTP id smtpd.web09.7781.1575656129984273827 for ; Fri, 06 Dec 2019 10:15:30 -0800 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Dec 2019 10:15:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,285,1571727600"; d="scan'208";a="206186051" X-Received: from nldesimo-desk1.amr.corp.intel.com ([10.7.159.63]) by orsmga008.jf.intel.com with ESMTP; 06 Dec 2019 10:15:29 -0800 From: "Nate DeSimone" To: devel@edk2.groups.io Cc: Bob Feng , Liming Gao , Leif Lindholm Subject: [edk2-devel] [PATCH] BaseTools/Scripts: Add sendemail.transferEncoding to SetupGit.py Date: Fri, 6 Dec 2019 10:15:22 -0800 Message-Id: <20191206181522.2542-1-nathaniel.l.desimone@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,nathaniel.l.desimone@intel.com X-Gm-Message-State: aaaaaaaaaaaaaaaaaaaaaaaax1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1575656130; bh=K460VZPhar5LhcmQoIImcMvG6y/f7+1jbkMh+kfIdzs=; h=Cc:Date:From:Reply-To:Subject:To; b=T1Ykv9DOsWDQJ3NFEK6tfV9wZ6bg2Nk88UEPg5XBV74Ksk+/dMJ2mi0fcG7oszb63xy vU5esWIYO1DDvzK4UzH1/iZTMRhUd7nZ4gDKTQGcbYEv9gXRTIL2yEGMK5sSBwxy660Yl G2/CPcf6aDM8awi+GbRvyDF/JrDx6emNECU= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" If git finds a '\r' character in the message, then it converts the entire message content into Quoted-Printable encoding. It appears that when groups.io converts the QP encoding back to text format, the '\r' characters somehow become '\n'. To workaround this, the SetupGit.py script will now explicitly set the sendemail.transferEncoding git config option to '8bit' Cc: Bob Feng Cc: Liming Gao Cc: Leif Lindholm Signed-off-by: Nate DeSimone --- BaseTools/Scripts/SetupGit.py | 38 ++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/BaseTools/Scripts/SetupGit.py b/BaseTools/Scripts/SetupGit.py index 3d39d3b35f..514f1c4d42 100644 --- a/BaseTools/Scripts/SetupGit.py +++ b/BaseTools/Scripts/SetupGit.py @@ -2,6 +2,7 @@ # Set up the git configuration for contributing to TianoCore projects # # Copyright (c) 2019, Linaro Ltd. All rights reserved.
+# Copyright (c) 2019, Intel Corporation. All rights reserved.
# # SPDX-License-Identifier: BSD-2-Clause-Patent # @@ -53,29 +54,30 @@ MIN_GIT_VERSION =3D (1, 9, 0) =20 # Set of options to be set identically for all repositories OPTIONS =3D [ - {'section': 'am', 'option': 'keepcr', 'value': True}, - {'section': 'am', 'option': 'signoff', 'value': True}, - {'section': 'cherry-pick', 'option': 'signoff', 'value': True}, - {'section': 'color', 'option': 'diff', 'value': True}, - {'section': 'color', 'option': 'grep', 'value': 'auto'= }, - {'section': 'commit', 'option': 'signoff', 'value': True}, - {'section': 'core', 'option': 'abbrev', 'value': 12}, + {'section': 'am', 'option': 'keepcr', 'value': Tru= e}, + {'section': 'am', 'option': 'signoff', 'value': Tru= e}, + {'section': 'cherry-pick', 'option': 'signoff', 'value': Tru= e}, + {'section': 'color', 'option': 'diff', 'value': Tru= e}, + {'section': 'color', 'option': 'grep', 'value': 'au= to'}, + {'section': 'commit', 'option': 'signoff', 'value': Tru= e}, + {'section': 'core', 'option': 'abbrev', 'value': 12}, {'section': 'core', 'option': 'attributesFile', 'value': os.path.join(CONFDIR, 'gitattributes').replace('\\', '/')}, - {'section': 'core', 'option': 'whitespace', 'value': 'cr-at= -eol'}, - {'section': 'diff', 'option': 'algorithm', 'value': 'patie= nce'}, + {'section': 'core', 'option': 'whitespace', 'value': 'cr= -at-eol'}, + {'section': 'diff', 'option': 'algorithm', 'value': 'pa= tience'}, {'section': 'diff', 'option': 'orderFile', 'value': os.path.join(CONFDIR, 'diff.order').replace('\\', '/')}, - {'section': 'diff', 'option': 'renames', 'value': 'copie= s'}, - {'section': 'diff', 'option': 'statGraphWidth', 'value': '20'}, - {'section': 'diff "ini"', 'option': 'xfuncname', + {'section': 'diff', 'option': 'renames', 'value': 'co= pies'}, + {'section': 'diff', 'option': 'statGraphWidth', 'value': '20= '}, + {'section': 'diff "ini"', 'option': 'xfuncname', 'value': '^\\\\[[A-Za-z0-9_., ]+]'}, - {'section': 'format', 'option': 'coverLetter', 'value': True}, - {'section': 'format', 'option': 'numbered', 'value': True}, - {'section': 'format', 'option': 'signoff', 'value': False}, - {'section': 'notes', 'option': 'rewriteRef', 'value': 'refs/= notes/commits'}, - {'section': 'sendemail', 'option': 'chainreplyto', 'value': False}, - {'section': 'sendemail', 'option': 'thread', 'value': True}, + {'section': 'format', 'option': 'coverLetter', 'value': Tru= e}, + {'section': 'format', 'option': 'numbered', 'value': Tru= e}, + {'section': 'format', 'option': 'signoff', 'value': Fal= se}, + {'section': 'notes', 'option': 'rewriteRef', 'value': 're= fs/notes/commits'}, + {'section': 'sendemail', 'option': 'chainreplyto', 'value': Fal= se}, + {'section': 'sendemail', 'option': 'thread', 'value': Tru= e}, + {'section': 'sendemail', 'option': 'transferEncoding', 'value': '8b= it'}, ] =20 =20 --=20 2.24.0.windows.2 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#52014): https://edk2.groups.io/g/devel/message/52014 Mute This Topic: https://groups.io/mt/67517138/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-