From ad9707f602f435933a0ee576aa4f3c97a5fc398d 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 4ef5ed484c..68749f5701 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 () {