work around misdetection of stdin attached to a tty
commit12051e5613425efdbdd64cde1987dcc19c2f44ae
authorHeiko Voigt <hvoigt@hvoigt.net>
Wed, 16 Jun 2010 18:11:00 +0000 (16 20:11 +0200)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 2 Nov 2011 20:12:04 +0000 (2 15:12 -0500)
treeae9b003226e80ad0088a1e6cc02f0adff704f89a
parent5956c9aebef6a6d25bc6c4d85303f3835a824bff
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