work around misdetection of stdin attached to a tty
commita9dd8c24954b6674a083abc5f67c8d1635e25d12
authorHeiko Voigt <hvoigt@hvoigt.net>
Wed, 16 Jun 2010 18:11:00 +0000 (16 20:11 +0200)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 6 Aug 2011 11:43:14 +0000 (6 13:43 +0200)
tree9b88cf236f8caec1fce7b3cace50cf43ad514c68
parentd132e8bef46b8dfcc7edf1e1fa71e6af377109c3
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