From 20749fb1de43759eb9d8f3b50dae2166a4e72a0d Mon Sep 17 00:00:00 2001 From: Moshe Weitzman Date: Mon, 25 Sep 2017 05:52:33 -0400 Subject: [PATCH] Fix #2951. Comment out legacy code and hope for the best. --- src/Commands/core/SiteInstallCommands.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Commands/core/SiteInstallCommands.php b/src/Commands/core/SiteInstallCommands.php index 9bd96f929a..cdae08f0a9 100644 --- a/src/Commands/core/SiteInstallCommands.php +++ b/src/Commands/core/SiteInstallCommands.php @@ -265,7 +265,11 @@ public function pre(CommandData $commandData) $db_spec = $sql->getDbSpec(); $aliasRecord = $this->siteAliasManager()->getSelf(); - $sites_subdir = drush_sitealias_local_site_path($aliasRecord->legacyRecord()); + + + // @todo The function below is inscrutable. Would rather not port it. Please pass --sites-subdir for now. + // $sites_subdir = drush_sitealias_local_site_path($aliasRecord->legacyRecord()); + // Override with sites-subdir if specified. if ($dir = $commandData->input()->getOption('sites-subdir')) { $sites_subdir = "sites/$dir";