aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2012-01-31 09:58:45 +0100
committerGuido Günther <agx@sigxcpu.org>2012-01-31 11:57:33 +0100
commitcd37502b4520106407a49c1f63b72bde62c046f0 (patch)
tree44b2df95949123d117f6cf8f4cec12b08f5554a4
parent158ac4cbb641b4bb618bf783438e2901c104a3d6 (diff)
GitRepository: Allow empty input in _git_inout()
so it can replace _git_getoutput()
-rw-r--r--gbp/git/repository.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gbp/git/repository.py b/gbp/git/repository.py
index e73d6dc..f63dd42 100644
--- a/gbp/git/repository.py
+++ b/gbp/git/repository.py
@@ -106,8 +106,8 @@ class GitRepository(object):
output += popen.stdout.readlines()
return output, popen.returncode
- def _git_inout(self, command, args, input, extra_env=None, cwd=None,
- capture_stderr=False):
+ def _git_inout(self, command, args, input=None, extra_env=None, cwd=None,
+ capture_stderr=False):
"""
Run a git command with input and return output