Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit e3c761a

Browse files
hvoigtkblees
authored andcommitted
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 <[email protected]>
1 parent 20ba112 commit e3c761a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

t/test-lib.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
# You should have received a copy of the GNU General Public License
1616
# along with this program. If not, see http://www.gnu.org/licenses/ .
1717

18+
# for git on windows so stdin will not be misdetected as attached to a
19+
# terminal
20+
exec < /dev/null
21+
1822
# Keep the original TERM for say_color
1923
ORIGINAL_TERM=$TERM
2024

0 commit comments

Comments
 (0)