diff options
author | Guido Günther <agx@sigxcpu.org> | 2011-10-29 16:06:20 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2011-10-29 16:06:20 +0200 |
commit | bf9e3bde8a53b1d8f62a30f10c9cc8c976e02cd8 (patch) | |
tree | 1ed46a06efc8379234d101ded2aa0e8fea1fee62 | |
parent | 39b740d8ccead341f511dda38860fb0277f4af57 (diff) |
GitRepository: Simplify error status handling
Git-Dch: Ignore
-rw-r--r-- | gbp/git.py | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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): """ |