Skip to content

Commit

Permalink
Exclude the 'sites/settings' dir for the default list of sites. (#2994)…
Browse files Browse the repository at this point in the history
… (#3105)

Force-approving this based on the same code's approval on the 9.x branch.
  • Loading branch information
ba66e77 authored Sep 15, 2018
1 parent 9ca8028 commit 48c8464
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Robo/Config/DefaultConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ public function setSite($site) {
/**
* Gets an array of sites for the Drupal application.
*
* I.e., sites under docroot/sites, not including acsf 'g' pseudo-site.
* I.e., sites under docroot/sites, not including acsf 'g' pseudo-site and
* 'settings' directory globbed in blt.settings.php.
*
* @return array
* An array of sites.
Expand All @@ -97,7 +98,7 @@ protected function getSiteDirs() {
->in($sites_dir)
->directories()
->depth('< 1')
->exclude(['g'])
->exclude(['g', 'settings'])
->sortByName();
foreach ($dirs->getIterator() as $dir) {
$sites[] = $dir->getRelativePathname();
Expand Down

0 comments on commit 48c8464

Please sign in to comment.