summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhang Qiang <qiang.z.zhang@intel.com>2012-08-19 07:28:36 +0800
committerZhang Qiang <qiang.z.zhang@intel.com>2012-08-20 12:54:43 +0800
commitcc429cd21cc605d7657ee607bcb96cceaed49a4a (patch)
treebcd344f6db07e7e6ca0b4e34b7e76da176c52d02
parent6697b31dae7b6deff1926eb78f67757e762b9d18 (diff)
downloadgit-buildpackage-cc429cd21cc605d7657ee607bcb96cceaed49a4a.tar.gz
git-buildpackage-cc429cd21cc605d7657ee607bcb96cceaed49a4a.tar.bz2
git-buildpackage-cc429cd21cc605d7657ee607bcb96cceaed49a4a.zip
redirect stderr to stdout and return all output info
without this patch stderr info would be printted, that should be controled by code level, sometimes that stderr info is usless for user. fix #236.
-rw-r--r--gbp/git/repository.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gbp/git/repository.py b/gbp/git/repository.py
index 965711ad..9f1e9a90 100644
--- a/gbp/git/repository.py
+++ b/gbp/git/repository.py
@@ -122,7 +122,7 @@ class GitRepository(object):
env = self.__build_env(extra_env)
cmd = ['git', command] + args
log.debug(cmd)
- popen = subprocess.Popen(cmd, stdout=subprocess.PIPE, env=env, cwd=cwd)
+ popen = subprocess.Popen(cmd, stderr=subprocess.STDOUT, stdout=subprocess.PIPE, env=env, cwd=cwd)
while popen.poll() == None:
output += popen.stdout.readlines()
output += popen.stdout.readlines()