Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the same path roots when calling makePathRelative #752

Merged
merged 7 commits into from Apr 19, 2017
2 changes: 1 addition & 1 deletion src/Util/SymlinkUtil.php
Expand Up @@ -38,7 +38,7 @@ public static function symlink($target, $link, $rootDir)
if ('\\' === DIRECTORY_SEPARATOR) {
$fs->symlink($rootDir.'/'.$target, $rootDir.'/'.$link);
} else {
$fs->symlink(rtrim($fs->makePathRelative($target, dirname($link)), '/'), $rootDir.'/'.$link);
$fs->symlink(rtrim($fs->makePathRelative($rootDir.'/'.$target, dirname($rootDir.'/'.$link)), '/'), $rootDir.'/'.$link);
}
}

Expand Down