Skip to content

Commit

Permalink
#2909: Relative root paths no longer seem to work (#4019)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
JTubex authored and weitzman committed Mar 29, 2019
1 parent 26cfd37 commit 95d0313
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Config/Environment.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Environment
public function __construct($homeDir, $cwd, $autoloadFile)
{
$this->homeDir = $homeDir;
$this->originalCwd = Path::canonicalize($cwd);
$this->originalCwd = Path::canonicalize(FsUtils::realpath($cwd));
$this->etcPrefix = '';
$this->sharePrefix = '';
$this->drushBasePath = Path::canonicalize(dirname(dirname(__DIR__)));
Expand Down

0 comments on commit 95d0313

Please sign in to comment.