release tool: must decode bytes to string

This commit is contained in:
Michael McCandless 2014-10-02 08:58:10 -04:00 committed by mikemccand
parent c4866b3f03
commit 34e513c1a0
1 changed files with 1 additions and 1 deletions

View File

@ -549,7 +549,7 @@ def ensure_checkout_is_clean(branchName):
raise RuntimeError('git diff --shortstat is non-empty: got:\n%s' % s)
# Make sure no untracked files:
s = subprocess.check_output('git status', shell=True)
s = subprocess.check_output('git status', shell=True).decode('utf-8', errors='replace')
if 'Untracked files:' in s:
raise RuntimeError('git status shows untracked files: got:\n%s' % s)