work around misdetection of stdin attached to a tty
commitdd7c81eb195fb64d57ec85badcf41d3f64366eb0
authorHeiko Voigt <hvoigt@hvoigt.net>
Wed, 16 Jun 2010 18:11:00 +0000 (16 20:11 +0200)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 17 Feb 2011 12:36:21 +0000 (17 13:36 +0100)
tree0fd1bd4053007f3d2c4d2e05526ff4b2590ddea9
parent6c7de834d959991c69967241459f193f5a5e8e43
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