Commit 69bc538f authored by maruel@chromium.org's avatar maruel@chromium.org

subprocess2.check_output() doesn't allow stdout, like python2.7's version.

Don't bother, but redirect stderr.

TBR=dpranke@chromium.org
BUG=
TEST=


Review URL: http://codereview.chromium.org/7865005

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@100464 0039d316-1c4b-4281-b951-d872f2087c98
parent 6a051695
...@@ -442,7 +442,7 @@ def GuessVCS(options, path): ...@@ -442,7 +442,7 @@ def GuessVCS(options, path):
try: try:
subprocess2.check_output( subprocess2.check_output(
['git', 'rev-parse', '--is-inside-work-tree'], cwd=real_path, ['git', 'rev-parse', '--is-inside-work-tree'], cwd=real_path,
stdout=subprocess2.VOID) stderr=subprocess2.VOID)
return GIT(options, path) return GIT(options, path)
except subprocess2.CalledProcessError, e: except subprocess2.CalledProcessError, e:
if e.returncode != errno.ENOENT and e.returncode != 128: if e.returncode != errno.ENOENT and e.returncode != 128:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment