From ba50a8539e56d8c5b3592fdcd7f043bd2a44c407 Mon Sep 17 00:00:00 2001 From: Ali M Date: Fri, 2 Feb 2018 14:08:05 -0500 Subject: [PATCH] Update Preflight.php Fix infinite loop of dispatching when drupal root lives in a symlinked directory. --- src/Preflight/Preflight.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Preflight/Preflight.php b/src/Preflight/Preflight.php index 726f2dea45..4c5514ecdf 100644 --- a/src/Preflight/Preflight.php +++ b/src/Preflight/Preflight.php @@ -268,7 +268,7 @@ public function preflight($argv) // a site-local Drush. If there is, we will redispatch to it. // NOTE: termination handlers have not been set yet, so it is okay // to exit early without taking special action. - $status = RedispatchToSiteLocal::redispatchIfSiteLocalDrush($argv, $root, $this->environment->vendorPath(), $this->logger()) ; + $status = RedispatchToSiteLocal::redispatchIfSiteLocalDrush($argv, realpath($root), $this->environment->vendorPath(), $this->logger()) ; if ($status !== false) { return $status; }