From 0c02a447a37e627610cb645b7d2be8aa76fc9891 Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen.haas@lakedrops.com> Date: Fri, 9 Dec 2022 16:08:41 +0100 Subject: [PATCH] Fix a bug while creating initial symlinks --- src/Handler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Handler.php b/src/Handler.php index 6730ea8..8590848 100644 --- a/src/Handler.php +++ b/src/Handler.php @@ -426,7 +426,7 @@ class Handler extends BaseHandler { if (isset($def['link']) && ($def['link'] !== $settingsPath)) { $link = $def['link'] . '/' . $filename; if (!$fs->exists($link)) { - $rel = substr($fs->makePathRelative($file, $projectRoot . '/' . $link), 3, -1); + $rel = substr($fs->makePathRelative($file, $projectRoot . '/' . $def['link']), 3, -1); $fs->symlink($rel, $link); } } -- GitLab