]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools/Scripts: Add sendemail.transferEncoding to SetupGit.py
authorDesimone, Nathaniel L <nathaniel.l.desimone@intel.com>
Fri, 6 Dec 2019 18:15:22 +0000 (02:15 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 24 Dec 2019 08:31:20 +0000 (08:31 +0000)
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'

Signed-off-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Leif Lindholm <leif.lindholm@linaro.org>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
BaseTools/Scripts/SetupGit.py

index 3d39d3b35fd9f34a284678f71b4523002e070eca..514f1c4d42d44dfb2eebc93989c49cb1c6cb4f78 100644 (file)
@@ -2,6 +2,7 @@
 #  Set up the git configuration for contributing to TianoCore projects\r
 #\r
 #  Copyright (c) 2019, Linaro Ltd. All rights reserved.<BR>\r
+#  Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>\r
 #\r
 #  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
@@ -53,29 +54,30 @@ MIN_GIT_VERSION = (1, 9, 0)
 \r
 # Set of options to be set identically for all repositories\r
 OPTIONS = [\r
-    {'section': 'am',          'option': 'keepcr',         'value': True},\r
-    {'section': 'am',          'option': 'signoff',        'value': True},\r
-    {'section': 'cherry-pick', 'option': 'signoff',        'value': True},\r
-    {'section': 'color',       'option': 'diff',           'value': True},\r
-    {'section': 'color',       'option': 'grep',           'value': 'auto'},\r
-    {'section': 'commit',      'option': 'signoff',        'value': True},\r
-    {'section': 'core',        'option': 'abbrev',         'value': 12},\r
+    {'section': 'am',          'option': 'keepcr',            'value': True},\r
+    {'section': 'am',          'option': 'signoff',           'value': True},\r
+    {'section': 'cherry-pick', 'option': 'signoff',           'value': True},\r
+    {'section': 'color',       'option': 'diff',              'value': True},\r
+    {'section': 'color',       'option': 'grep',              'value': 'auto'},\r
+    {'section': 'commit',      'option': 'signoff',           'value': True},\r
+    {'section': 'core',        'option': 'abbrev',            'value': 12},\r
     {'section': 'core',        'option': 'attributesFile',\r
      'value': os.path.join(CONFDIR, 'gitattributes').replace('\\', '/')},\r
-    {'section': 'core',        'option': 'whitespace',     'value': 'cr-at-eol'},\r
-    {'section': 'diff',        'option': 'algorithm',      'value': 'patience'},\r
+    {'section': 'core',        'option': 'whitespace',        'value': 'cr-at-eol'},\r
+    {'section': 'diff',        'option': 'algorithm',         'value': 'patience'},\r
     {'section': 'diff',        'option': 'orderFile',\r
      'value': os.path.join(CONFDIR, 'diff.order').replace('\\', '/')},\r
-    {'section': 'diff',        'option': 'renames',        'value': 'copies'},\r
-    {'section': 'diff',        'option': 'statGraphWidth', 'value': '20'},\r
-    {'section': 'diff "ini"',    'option': 'xfuncname',\r
+    {'section': 'diff',        'option': 'renames',           'value': 'copies'},\r
+    {'section': 'diff',        'option': 'statGraphWidth',    'value': '20'},\r
+    {'section': 'diff "ini"',  'option': 'xfuncname',\r
      'value': '^\\\\[[A-Za-z0-9_., ]+]'},\r
-    {'section': 'format',      'option': 'coverLetter',    'value': True},\r
-    {'section': 'format',      'option': 'numbered',       'value': True},\r
-    {'section': 'format',      'option': 'signoff',        'value': False},\r
-    {'section': 'notes',       'option': 'rewriteRef',     'value': 'refs/notes/commits'},\r
-    {'section': 'sendemail',   'option': 'chainreplyto',   'value': False},\r
-    {'section': 'sendemail',   'option': 'thread',         'value': True},\r
+    {'section': 'format',      'option': 'coverLetter',       'value': True},\r
+    {'section': 'format',      'option': 'numbered',          'value': True},\r
+    {'section': 'format',      'option': 'signoff',           'value': False},\r
+    {'section': 'notes',       'option': 'rewriteRef',        'value': 'refs/notes/commits'},\r
+    {'section': 'sendemail',   'option': 'chainreplyto',      'value': False},\r
+    {'section': 'sendemail',   'option': 'thread',            'value': True},\r
+    {'section': 'sendemail',   'option': 'transferEncoding',  'value': '8bit'},\r
     ]\r
 \r
 \r