work around misdetection of stdin attached to a tty
commitb3dcad6c7e49521be5e68c14c32e5d4e471ead05
authorHeiko Voigt <hvoigt@hvoigt.net>
Wed, 16 Jun 2010 18:11:00 +0000 (16 20:11 +0200)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 5 Jul 2010 09:11:20 +0000 (5 11:11 +0200)
treebf8737d39e54e89af7da95a06cf02e1f95bf3f72
parente582acb0502d5e0d8cae6e315539ceeeba227d52
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