perf: let's disable symlinks when they are not available
[gitweb.git] / t / perf / perf-lib.sh
index 5cf74eddec7552140c5bef14f23fc637a2ad9818..9fa07066d14a4328d654f58fc5bdae4bb31bd214 100644 (file)
@@ -96,7 +96,10 @@ test_perf_create_repo_from () {
                        esac
                done &&
                cd .. &&
-               git init -q &&
+               git init -q && {
+                       test_have_prereq SYMLINKS ||
+                       git config core.symlinks false
+               } &&
                mv .git/hooks .git/hooks-disabled 2>/dev/null
        ) || error "failed to copy repository '$source' to '$repo'"
 }