aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2019-11-28 16:38:19 +0530
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2019-11-28 19:00:53 +0530
commit1cb680388d91c418f64650b3aa2f59ff7ec06e8c (patch)
treeac44ad11191d6b1fa45ae51347b815101671eb72
parent575a2c34f811dc003caf415d5343f524c5c8e802 (diff)
downloadmeson-1cb680388d91c418f64650b3aa2f59ff7ec06e8c.zip
meson-1cb680388d91c418f64650b3aa2f59ff7ec06e8c.tar.gz
meson-1cb680388d91c418f64650b3aa2f59ff7ec06e8c.tar.bz2
wrap: Redirect stdin to DEVNULL (again)
Same fix as e7b25018c4715e538234d4ba51e32194b4757388, was accidentally missed when this code was rewritten.
-rwxr-xr-xmesonbuild/msubprojects.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/msubprojects.py b/mesonbuild/msubprojects.py
index bc6a6ce..eeeb9c6 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):