diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2012-09-04 08:28:03 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2012-09-04 08:30:15 +0800 |
commit | 3cc490216483c6c6245a74aa9646d8c7f03e0872 (patch) | |
tree | 7c872d659de73968bbe7cec1ee9f8652dc3eb4e3 /apps | |
parent | 7a79c1a2e4b2ceaf2668fa671f2db98c0de7b724 (diff) | |
download | patchwork-3cc490216483c6c6245a74aa9646d8c7f03e0872.tar patchwork-3cc490216483c6c6245a74aa9646d8c7f03e0872.tar.gz |
pwclient: Pass input to git-am as a UTF-8 string
.. to prevent ascii codec exceptions.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/patchwork/bin/pwclient | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/patchwork/bin/pwclient b/apps/patchwork/bin/pwclient index 4c47b11..16ca337 100755 --- a/apps/patchwork/bin/pwclient +++ b/apps/patchwork/bin/pwclient @@ -269,7 +269,7 @@ def action_apply(rpc, patch_id, apply_cmd=None): s = rpc.patch_get_mbox(patch_id) if len(s) > 0: proc = subprocess.Popen(apply_cmd, stdin = subprocess.PIPE) - proc.communicate(s) + proc.communicate(unicode(s).encode('utf-8')) else: sys.stderr.write("Error: No patch content found\n") sys.exit(1) |