From bf9e3bde8a53b1d8f62a30f10c9cc8c976e02cd8 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Sat, 29 Oct 2011 16:06:20 +0200 Subject: GitRepository: Simplify error status handling Git-Dch: Ignore --- gbp/git.py | 3 +-- 1 file changed, 1 insertion(+), 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): """ -- cgit v1.2.3