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

Commit 35d5632

Browse files
patthoytskblees
authored andcommitted
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 <[email protected]> Signed-off-by: Pat Thoyts <[email protected]>
1 parent 6aeb027 commit 35d5632

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

t/t0008-ignores.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ test_description=check-ignore
55
. ./test-lib.sh
66

77
init_vars () {
8-
global_excludes="$(pwd)/global-excludes"
8+
# On Windows, avoid using "C:" in the global-excludes paths.
9+
if test_have_prereq MINGW
10+
then
11+
global_excludes="global-excludes"
12+
else
13+
global_excludes="$(pwd)/global-excludes"
14+
fi
915
}
1016

1117
enable_global_excludes () {

0 commit comments

Comments
 (0)