work around misdetection of stdin attached to a tty
commit704279b6b3e03b1fb4bf484c6b60fa401ee03eeb
authorHeiko Voigt <hvoigt@hvoigt.net>
Wed, 16 Jun 2010 18:11:00 +0000 (16 20:11 +0200)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Tue, 19 Jun 2012 22:29:19 +0000 (19 23:29 +0100)
tree214ae1d8823192c27cb391e7b1e4cbb931d5b501
parentd9f17f9f8c4daaa40e37713586198edd5ca1d702
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