mirror of
https://github.com/git/git.git
synced 2026-02-04 06:53:10 +00:00
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 <karsten.blees@gmail.com> Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
This commit is contained in:
committed by
Johannes Schindelin
parent
97e53f79b8
commit
ad9707f602
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user