[PATCH 12/19] mingw: do not use symlinks with SVN in t9100
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jan 24, 2016, 15:45 UTC
- Message-ID
- <f016fde3118f5028b7e589f36bc9c916464a9de9.1453650173.git.johannes.schindelin@gmx.de>
- In-Reply-To
- <cover.1453650173.git.johannes.schindelin@gmx.de>
From: Karsten Blees <blees@dcon.de>
The SVN library does not seem to support symlinks, even if symlinks are enabled in MSYS2 and Git. Use 'cp' instead of 'ln -s'.
This partially fixes t/t9100-git-svn-basic.sh
Signed-off-by: Karsten Blees <blees@dcon.de> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> --- t/t9100-git-svn-basic.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/t/t9100-git-svn-basic.sh b/t/t9100-git-svn-basic.sh index 258d9b8..dbb440b 100755 --- a/t/t9100-git-svn-basic.sh +++ b/t/t9100-git-svn-basic.sh @@ -25,7 +25,14 @@ test_expect_success \ ( cd import && echo foo >foo && - ln -s foo foo.link + if test_have_prereq !MINGW + then + ln -s foo foo.link + else + # MSYS libsvn does not support symlinks, so always use cp, even if + # ln -s actually works + cp foo foo.link + fi mkdir -p dir/a/b/c/d/e && echo "deep dir" >dir/a/b/c/d/e/file && mkdir bar &&
-- 2.7.0.windows.1.7.g55a05c8