projects
/
mass-build.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more general module loading; do not use __dict__ directly
[mass-build.git]
/
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)
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()