Merge "show all available branches in list-changes"

This commit is contained in:
Jenkins 2016-09-07 12:06:46 +00:00 committed by Gerrit Code Review
commit 13fc359f92

View File

@ -65,6 +65,11 @@ def git_branch_contains(workdir, repo, title, commit):
print('\n' + ' '.join(cmd) + '\n')
out = subprocess.check_output(cmd, cwd=os.path.join(workdir, repo))
print(out + '\n')
print('\nAll branches:')
subprocess.check_call(
['git', 'branch', '-a'],
cwd=os.path.join(workdir, repo),
)
return [o.strip() for o in out.splitlines()]