HBASE-18607: fix submit-patch.py to support utf8
one liner to support utf8 content Change-Id: I57508879bea25aa5ae69e01e777b91a7160aafc8 Signed-off-by: Apekshit Sharma <appy@apache.org>
This commit is contained in:
parent
08a9522fc1
commit
158f3da167
|
@ -250,7 +250,7 @@ patch_filepath = os.path.join(patch_dir, patch_filename)
|
||||||
|
|
||||||
diff = git.format_patch(base_branch, stdout = True)
|
diff = git.format_patch(base_branch, stdout = True)
|
||||||
with open(patch_filepath, "w") as f:
|
with open(patch_filepath, "w") as f:
|
||||||
f.write(diff)
|
f.write(diff.encode('utf8'))
|
||||||
|
|
||||||
if args.jira_id is not None:
|
if args.jira_id is not None:
|
||||||
creds = get_credentials()
|
creds = get_credentials()
|
||||||
|
|
Loading…
Reference in New Issue