work around misdetection of stdin attached to a tty
commit230d51157904eea168f66d3883171dcea1ae04ca
authorHeiko Voigt <hvoigt@hvoigt.net>
Wed, 16 Jun 2010 18:11:00 +0000 (16 20:11 +0200)
committerStepan Kasal <kasal@ucw.cz>
Thu, 29 May 2014 08:41:40 +0000 (29 10:41 +0200)
tree292c10b7290cf99f185a1ca17dea3efdfcadb3cf
parentec765f62e21aa1d3f2ad565a93844758021cc68d
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