summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2011-10-29 16:06:20 +0200
committerGuido Günther <agx@sigxcpu.org>2011-10-29 16:06:20 +0200
commitbf9e3bde8a53b1d8f62a30f10c9cc8c976e02cd8 (patch)
tree1ed46a06efc8379234d101ded2aa0e8fea1fee62
parent39b740d8ccead341f511dda38860fb0277f4af57 (diff)
GitRepository: Simplify error status handling
Git-Dch: Ignore
-rw-r--r--gbp/git.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/gbp/git.py b/gbp/git.py
index 55039ed..d6dddd0 100644
--- a/gbp/git.py
+++ b/gbp/git.py
@@ -146,9 +146,8 @@ class GitRepository(object):
popen = subprocess.Popen(cmd, stdout=subprocess.PIPE, env=env, cwd=cwd)
while popen.poll() == None:
output += popen.stdout.readlines()
- ret = popen.poll()
output += popen.stdout.readlines()
- return output, ret
+ return output, popen.returncode
def __git_inout(self, command, args, input, extra_env=None):
"""