wrap: Redirect stdin to DEVNULL (again)

Same fix as e7b25018c4, was accidentally
missed when this code was rewritten.
This commit is contained in:
Nirbheek Chauhan 2019-11-28 16:38:19 +05:30 committed by Nirbheek Chauhan
parent 575a2c34f8
commit 1cb680388d
1 changed files with 4 additions and 0 deletions

View File

@ -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):