Skip to content

Commit 95d0313

Browse files
JTubexweitzman
authored andcommitted
#2909: Relative root paths no longer seem to work (#4019)
* Return the realpath instead of symlinked path * #4109: Convert symlinked originalCwd to the realpath * Fix AppVeyor tests * Fix failing test EnvironmentTest::testExportConfigData() * Canonicalize originalCwd after it is converted to the realpath
1 parent 26cfd37 commit 95d0313

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Config/Environment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Environment
3434
public function __construct($homeDir, $cwd, $autoloadFile)
3535
{
3636
$this->homeDir = $homeDir;
37-
$this->originalCwd = Path::canonicalize($cwd);
37+
$this->originalCwd = Path::canonicalize(FsUtils::realpath($cwd));
3838
$this->etcPrefix = '';
3939
$this->sharePrefix = '';
4040
$this->drushBasePath = Path::canonicalize(dirname(dirname(__DIR__)));

0 commit comments

Comments
 (0)