summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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):
"""