X-Git-Url: https://git.ralfj.de/mass-build.git/blobdiff_plain/1948a7fb45ffc56a537351c0f7bebb667bcc7d93..eefd5614c5adc07d987de55e58de4e2d0089d887:/vcs.py 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()