tools/pr.py: minor tweak

This commit is contained in:
Daniel Marjamäki 2018-11-20 06:36:08 +01:00
parent a5af5b2d08
commit 60ce95c1ec
1 changed files with 4 additions and 1 deletions

View File

@ -31,7 +31,10 @@ if response.status_code == 200:
p = subprocess.Popen('git show --format=format:%h'.split(), stdout=subprocess.PIPE, stderr=subprocess.PIPE) p = subprocess.Popen('git show --format=format:%h'.split(), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
comm = p.communicate() comm = p.communicate()
print('\nMessage: I merged this with ' + comm[0]) stdout = comm[0]
if stdout.find('\n') > 0:
stdout = stdout[:stdout.find('\n')]
print('\nMessage: I merged this with ' + stdout)