Repository: hbase
Updated Branches:
  refs/heads/branch-1.4 75ab445eb -> ca6714d54


HBASE-18607: fix submit-patch.py to support utf8

one liner to support utf8 content

Change-Id: I57508879bea25aa5ae69e01e777b91a7160aafc8
Signed-off-by: Apekshit Sharma <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/ca6714d5
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/ca6714d5
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/ca6714d5

Branch: refs/heads/branch-1.4
Commit: ca6714d54ba6a8ed770fc94a4d33c29f62573e2e
Parents: 75ab445
Author: Tamas Penzes <[email protected]>
Authored: Wed Aug 16 10:25:45 2017 +0200
Committer: Apekshit Sharma <[email protected]>
Committed: Fri Aug 25 00:06:09 2017 -0700

----------------------------------------------------------------------
 dev-support/submit-patch.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/ca6714d5/dev-support/submit-patch.py
----------------------------------------------------------------------
diff --git a/dev-support/submit-patch.py b/dev-support/submit-patch.py
index 236f31d..577be52 100755
--- a/dev-support/submit-patch.py
+++ b/dev-support/submit-patch.py
@@ -250,7 +250,7 @@ patch_filepath = os.path.join(patch_dir, patch_filename)
 
 diff = git.format_patch(base_branch, stdout = True)
 with open(patch_filepath, "w") as f:
-    f.write(diff)
+    f.write(diff.encode('utf8'))
 
 if args.jira_id is not None:
     creds = get_credentials()

Reply via email to