Skip to content

Commit f0a66f9

Browse files
kbleesdscho
authored andcommitted
t9100: don't use symlinks with SVN on MINGW
The SVN library doesn't seem to support symlinks, even if symlinks are enabled in MSys and Git. Use 'cp' instead of 'ln -s'. Signed-off-by: Karsten Blees <[email protected]>
1 parent 0b7b627 commit f0a66f9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

t/t9100-git-svn-basic.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,14 @@ test_expect_success \
2525
(
2626
cd import &&
2727
echo foo >foo &&
28-
ln -s foo foo.link
28+
if test_have_prereq !MINGW
29+
then
30+
ln -s foo foo.link
31+
else
32+
# MSYS libsvn does not support symlinks, so always use cp, even if
33+
# ln -s actually works
34+
cp foo foo.link
35+
fi
2936
mkdir -p dir/a/b/c/d/e &&
3037
echo "deep dir" >dir/a/b/c/d/e/file &&
3138
mkdir bar &&

0 commit comments

Comments
 (0)