From 60ce95c1ece8162c34bd44475d0f9383fa7bbb16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Tue, 20 Nov 2018 06:36:08 +0100 Subject: [PATCH] tools/pr.py: minor tweak --- tools/pr.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/pr.py b/tools/pr.py index 02143bff6..c8a96a56d 100644 --- a/tools/pr.py +++ b/tools/pr.py @@ -31,7 +31,10 @@ if response.status_code == 200: p = subprocess.Popen('git show --format=format:%h'.split(), stdout=subprocess.PIPE, stderr=subprocess.PIPE) 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)