wrap: Redirect stdin to DEVNULL (again)

Same fix as e7b25018c4, was accidentally
missed when this code was rewritten.
pull/6256/head
Nirbheek Chauhan 5 years ago
parent f1c20ff49a
commit 20745a7c56
  1. 4
      mesonbuild/msubprojects.py

@ -41,6 +41,10 @@ def update_file(wrap, repo_dir, options):
def git(cmd, workingdir): def git(cmd, workingdir):
return subprocess.check_output(['git', '-C', workingdir] + cmd, return subprocess.check_output(['git', '-C', workingdir] + cmd,
# Redirect stdin to DEVNULL otherwise git
# messes up the console and ANSI colors stop
# working on Windows.
stdin=subprocess.DEVNULL,
stderr=subprocess.STDOUT).decode() stderr=subprocess.STDOUT).decode()
def git_show(repo_dir): def git_show(repo_dir):

Loading…
Cancel
Save