Merge "Redirect stderr for git rev-parse"

This commit is contained in:
Jenkins
2013-09-09 19:17:01 +00:00
committed by Gerrit Code Review

View File

@@ -856,7 +856,7 @@ class GitCheck(GlobalCheck):
try:
subp = subprocess.Popen(
['git', 'rev-parse', '--show-toplevel'],
stdout=subprocess.PIPE)
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
gitdir = subp.communicate()[0].rstrip()
except OSError:
# "git" was not found