Skip to content

Commit 69b3138

Browse files
committed
Handle new t1501 test case properly with MinGW
Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 5adb572 commit 69b3138

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

t/t1501-worktree.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,10 @@ test_expect_success 'make_relative_path handles double slashes in GIT_DIR' '
339339
git --git-dir="$(pwd)//repo.git" --work-tree="$(pwd)" add dummy_file
340340
'
341341

342+
test_have_prereq MINGW &&
343+
# make sure to test DOS path on Windows
344+
TRASH_DIRECTORY="$(cd "$TRASH_DIRECTORY" && pwd)"
345+
342346
test_expect_success 'relative $GIT_WORK_TREE and git subprocesses' '
343347
GIT_DIR=repo.git GIT_WORK_TREE=repo.git/work \
344348
test-subprocess --setup-work-tree rev-parse --show-toplevel >actual &&

0 commit comments

Comments
 (0)