projects
/
mass-build.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1948a7f
)
... of course I meant check_output ...
author
Ralf Jung
<post@ralfj.de>
Fri, 20 Sep 2013 13:48:19 +0000
(15:48 +0200)
committer
Ralf Jung
<post@ralfj.de>
Fri, 20 Sep 2013 13:48:19 +0000
(15:48 +0200)
vcs.py
patch
|
blob
|
history
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)
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()
return output.decode('utf-8').strip('\n')
return call
git = GitCommand()