From 1cb680388d91c418f64650b3aa2f59ff7ec06e8c Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Thu, 28 Nov 2019 16:38:19 +0530 Subject: [PATCH] wrap: Redirect stdin to DEVNULL (again) Same fix as e7b25018c4715e538234d4ba51e32194b4757388, was accidentally missed when this code was rewritten. --- mesonbuild/msubprojects.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mesonbuild/msubprojects.py b/mesonbuild/msubprojects.py index bc6a6ced1..eeeb9c6e5 100755 --- a/mesonbuild/msubprojects.py +++ b/mesonbuild/msubprojects.py @@ -41,6 +41,10 @@ def update_file(wrap, repo_dir, options): def git(cmd, workingdir): 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() def git_show(repo_dir):