decode command output in list-changes

Change-Id: Ia8a918875b291a13bf77f7908c76240579c767dc
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2017-03-03 14:46:12 -05:00
parent 4af34b58f3
commit 171a932236

View File

@ -74,7 +74,10 @@ def git_branch_contains(workdir, repo, title, commit):
header('%s %s' % (title, commit))
cmd = ['git', 'branch', '-r', '--contains', commit]
print('\n' + ' '.join(cmd) + '\n')
out = subprocess.check_output(cmd, cwd=os.path.join(workdir, repo))
out = subprocess.check_output(
cmd,
cwd=os.path.join(workdir, repo),
).decode('utf-8')
print(out)
return sorted(
o.strip()
@ -386,7 +389,7 @@ def main():
'--contains',
previous_release['version']],
cwd=os.path.join(workdir, project['repo']),
).split()
).decode('utf-8').split()
print('Containing tags:', containing_tags)
if new_release['version'] not in containing_tags:
print('WARNING: Missing %s' % new_release['version'])