Show More
@@ -960,7 +960,10 b' def email(ui, repo, *revs, **opts):' | |||
|
960 | 960 | hdr = pycompat.strurl(hdr) |
|
961 | 961 | change = True |
|
962 | 962 | if isinstance(val, bytes): |
|
963 | val = pycompat.strurl(val) | |
|
963 | # header value should be ASCII since it's encoded by | |
|
964 | # mail.headencode(), but -n/--test disables it and raw | |
|
965 | # value of platform encoding is stored. | |
|
966 | val = encoding.strfromlocal(val) | |
|
964 | 967 | if not change: |
|
965 | 968 | # prevent duplicate headers |
|
966 | 969 | del m[hdr] |
General Comments 0
You need to be logged in to leave comments.
Login now