work around misdetection of stdin attached to a tty
commit3d08379e7a806db666c63421c04ad0dc680cee0e
authorHeiko Voigt <hvoigt@hvoigt.net>
Wed, 16 Jun 2010 18:11:00 +0000 (16 20:11 +0200)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 4 Nov 2011 18:39:32 +0000 (4 13:39 -0500)
tree0ed48479f3b842b09c248965920db20c5a68d3c1
parentfef92f8ff5824ecbc4d65bd33b6daeca9452c400
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