X-Git-Url: https://git.ralfj.de/mass-build.git/blobdiff_plain/1948a7fb45ffc56a537351c0f7bebb667bcc7d93..2d7dbfca0da3fb29cd8578a2e2fd66b698fe3a3d:/vcs.py?ds=inline 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()