work around misdetection of stdin attached to a tty
commite3ba6f7fcd37f6770116568ab8f750252af10fb3
authorHeiko Voigt <hvoigt@hvoigt.net>
Wed, 16 Jun 2010 18:11:00 +0000 (16 20:11 +0200)
committerStepan Kasal <kasal@ucw.cz>
Wed, 16 Apr 2014 14:32:43 +0000 (16 16:32 +0200)
tree3d0456bfc1de5569ebfce4864c2038d3089b1d93
parentd4c36517ad7e3a3537719a79f95e48d1e0caf64a
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