Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Unified Diff: tools/check_git_config.py

Issue 1301453003: Fix encoding issue in check_git_config (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/check_git_config.py
diff --git a/tools/check_git_config.py b/tools/check_git_config.py
index ecdfc44273a8099c2469396c73612f2be07b7802..17b0d1ef4d742b015977d565531a24413e9932c4 100755
--- a/tools/check_git_config.py
+++ b/tools/check_git_config.py
@@ -111,7 +111,7 @@ def read_git_config(prop):
proc = subprocess.Popen(
[GIT_EXE, 'config', prop], stdout=subprocess.PIPE, cwd=REPO_ROOT)
out, _ = proc.communicate()
- return out.strip()
+ return out.strip().decode('utf-8')
except OSError as exc:
if exc.errno != errno.ENOENT:
logging.exception('Unexpected error when calling git')
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698