... of course I meant check_output ...
authorRalf Jung <post@ralfj.de>
Fri, 20 Sep 2013 13:48:19 +0000 (15:48 +0200)
committerRalf Jung <post@ralfj.de>
Fri, 20 Sep 2013 13:48:19 +0000 (15:48 +0200)
vcs.py

diff --git a/vcs.py b/vcs.py
index 2e7e8189508b2085cee9d0390f8bbae37c9ed551..5e481dea4b86439a7dd8ed71c29af2fc9ee75d1e 100644 (file)
--- 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()