work around misdetection of stdin attached to a tty
commitc81cf42bc5e9bea7ab859acd8f8cb2e8e6fc8f44
authorHeiko Voigt <hvoigt@hvoigt.net>
Wed, 16 Jun 2010 18:11:00 +0000 (16 20:11 +0200)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 20 Dec 2013 00:24:44 +0000 (19 18:24 -0600)
treec91391c17c7949ad2748c466c456e973a6c05126
parent31398e744e2035ca5abf63fcc4b13b95ba210a4c
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