aboutsummaryrefslogtreecommitdiff
path: root/tests/remote-git.testscript
diff options
context:
space:
mode:
Diffstat (limited to 'tests/remote-git.testscript')
-rw-r--r--tests/remote-git.testscript9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/remote-git.testscript b/tests/remote-git.testscript
index 308c067..377277d 100644
--- a/tests/remote-git.testscript
+++ b/tests/remote-git.testscript
@@ -66,12 +66,17 @@ else
end
# Command for extracting the git repository from a tarball into the output
-# directory (see above).
+# directory (see above). Note: should only be used for .tar, not .tar.gz.
#
# Note that we can expect that the tar program is present on the platform. We
# will use the same options as we do for unpacking of package archives (see
# pkg-unpack.cxx).
#
-git_extract = ($cxx.target.class != 'windows' \
+# Note that on Windows we still use tar rather than bsdtar here, since the
+# later fails for dangling symlinks and we have such symlinks in the
+# repository archives which are used for testing.
+#
+git_extract = [cmdline] \
+ ($cxx.target.class != 'windows' \
? tar -C $out_git -xf \
: tar -C $regex.replace($out_git, '\\', '/') --force-local -xf)