work around misdetection of stdin attached to a tty
commit7ab122e3059c7f91b1c04a0bec0eedf650a07a60
authorHeiko Voigt <hvoigt@hvoigt.net>
Wed, 16 Jun 2010 18:11:00 +0000 (16 20:11 +0200)
committerKarsten Blees <blees@dcon.de>
Thu, 15 Mar 2012 17:05:12 +0000 (15 18:05 +0100)
treec3c5c0d369f4e605c19f69341ecc10ebe5d2f34e
parentd2ec5252f7f7c2527ed0a9455f4ee1f6f42585a5
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