From: Ralf Jung Date: Fri, 20 Sep 2013 13:48:19 +0000 (+0200) Subject: ... of course I meant check_output ... X-Git-Url: https://git.ralfj.de/mass-build.git/commitdiff_plain/8305e00803ac24b824091d634418a69294f0407a?ds=sidebyside ... of course I meant check_output ... --- diff --git a/vcs.py b/vcs.py index 2e7e818..5e481de 100644 --- a/vcs.py +++ b/vcs.py @@ -34,7 +34,7 @@ class GitCommand: def __getattr__(self, name): def call(*args, get_stderr = False): cmd = ["git", name.replace('_', '-')] + list(args) - output = subprocess.check_call(cmd, stderr=subprocess.STDOUT if get_stderr else None) + output = subprocess.check_output(cmd, stderr=subprocess.STDOUT if get_stderr else None) return output.decode('utf-8').strip('\n') return call git = GitCommand()