work around misdetection of stdin attached to a tty
commit638bdc1f2cbcf0aa4b02503cb67ec62b223d25bb
authorHeiko Voigt <hvoigt@hvoigt.net>
Wed, 16 Jun 2010 18:11:00 +0000 (16 20:11 +0200)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Mon, 22 Oct 2012 12:29:43 +0000 (22 13:29 +0100)
treef3934078318a83c994e59d06422a27cd8f9db4e6
parent2ad97580c3a3c6631c18b505c9c3936520e37587
work around misdetection of stdin attached to a tty

Git on Windows was made aware of the fact that sometimes a file may be
used by another process and so an operation may fail but the user might
be able to fix it and is asking for confirmation whether it should
retry.

This is implemented in a way that git only asks in case stdin and stderr
are attached to a tty. Unfortunately this seems to be misdetected
sometimes causing the testsuite to hang when git is waiting for a user
answer.

This patch works around the situation.

Signed-off-by: Heiko Voigt <hvoigt@hvoigt.net>
t/test-lib.sh