From 8d5bf4118fb82f40d172dbc707afad78aa115fed Mon Sep 17 00:00:00 2001 From: Pat Thoyts Date: Thu, 30 May 2013 13:24:48 +0100 Subject: [PATCH] t0008: avoid absolute path on Windows as colon is used in the tests The test separator char is a colon which means any absolute paths on windows confuse the tests that use global_excludes. Suggested-by: Karsten Blees Signed-off-by: Pat Thoyts --- t/t0008-ignores.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/t/t0008-ignores.sh b/t/t0008-ignores.sh index b4d98e602f..d14a549a8f 100755 --- a/t/t0008-ignores.sh +++ b/t/t0008-ignores.sh @@ -5,7 +5,13 @@ test_description=check-ignore . ./test-lib.sh init_vars () { - global_excludes="$(pwd)/global-excludes" + # On Windows, avoid using "C:" in the global-excludes paths. + if test_have_prereq MINGW + then + global_excludes="global-excludes" + else + global_excludes="$(pwd)/global-excludes" + fi } enable_global_excludes () { -- 2.11.4.GIT