discarding stderr when working with git and subversion command line clients

This commit is contained in:
Alan Hamlett 2013-07-10 01:33:36 -07:00
parent 4bd6ed9ac4
commit 7134ac4650
2 changed files with 4 additions and 3 deletions

View file

@ -58,8 +58,9 @@ class Git(BaseProject):
stdout = None
try:
stdout, stderr = Popen([
'git', 'branch', '--no-color', '--list'
], stdout=PIPE, cwd=self._project_base()).communicate()
'git', 'branch', '--no-color', '--list'
], stdout=PIPE, stderr=PIPE, cwd=self._project_base()
).communicate()
except OSError:
pass
if stdout:

View file

@ -37,7 +37,7 @@ class Subversion(BaseProject):
try:
stdout, stderr = Popen([
'svn', 'info', os.path.realpath(self.path)
], stdout=PIPE).communicate()
], stdout=PIPE, stderr=PIPE).communicate()
except OSError:
pass
else: