diff options
author | Simon Glass <sjg@chromium.org> | 2017-05-29 15:31:23 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-06-08 20:21:59 -0600 |
commit | 6f8abf765b9a8be4a32d84677cbbff1a1706b325 (patch) | |
tree | 03c56f531e1bda802fe61f0bfb71e07c52761266 /tools/patman/gitutil.py | |
parent | 21caa558ca1811a9995ed1c1b0e2c01cbdf25662 (diff) | |
download | u-boot-6f8abf765b9a8be4a32d84677cbbff1a1706b325.tar.gz |
patman: Adjust handling of unicode email address
Don't mess with the email address when outputting them. Just make sure
they are encoded with utf-8.
Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Diffstat (limited to 'tools/patman/gitutil.py')
-rw-r--r-- | tools/patman/gitutil.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/patman/gitutil.py b/tools/patman/gitutil.py index 0d23079a3a..167bda38fc 100644 --- a/tools/patman/gitutil.py +++ b/tools/patman/gitutil.py @@ -407,6 +407,8 @@ def EmailPatches(series, cover_fname, args, dry_run, raise_on_error, cc_fname, cc = [] cmd = ['git', 'send-email', '--annotate'] if in_reply_to: + if type(in_reply_to) != str: + in_reply_to = in_reply_to.encode('utf-8') cmd.append('--in-reply-to="%s"' % in_reply_to) if thread: cmd.append('--thread') |