work around misdetection of stdin attached to a tty
commit3387e2df2248f4f5c9f0148b7e00fe1dbff70387
authorHeiko Voigt <hvoigt@hvoigt.net>
Wed, 16 Jun 2010 18:11:00 +0000 (16 20:11 +0200)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 31 Oct 2011 16:47:54 +0000 (31 11:47 -0500)
tree3077286968d94db2e4e3c29449961494c200a03f
parentafd7ac6f936c3a9c17a989ca07b5795ebb6f80ff
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