From b0e1138f80f77a52a54249a1029748cd26c6da27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Tue, 16 Apr 2019 20:13:38 +0200 Subject: [PATCH] pr.py: fix --- tools/pr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/pr.py b/tools/pr.py index 241b0800e..22aebf984 100644 --- a/tools/pr.py +++ b/tools/pr.py @@ -13,7 +13,7 @@ if response.status_code == 200: sha = j['head']['sha'] subprocess.call('git checkout -b {}-{} master'.format(login, branch).split()) - p = subprocess.call('git pull --rebase=true https://github.com/{}/cppcheck.git {}'.format(login, branch).split(), stdout=subprocess.PIPE, stderr=subprocess.PIPE) + p = subprocess.Popen('git pull --rebase=true https://github.com/{}/cppcheck.git {}'.format(login, branch).split(), stdout=subprocess.PIPE, stderr=subprocess.PIPE) comm = p.communicate() stdout = comm[0].decode(encoding='utf-8', errors='ignore') stderr = comm[1].decode(encoding='utf-8', errors='ignore')