I'm a long-time browser, first-time poster.
“Drush doesn't by default know to search this directory. To work around that we need to add this awesome snippet to our local drushrc.php file.”
I added the provided snippet to
docroot/sites/all/drush/drushrc.php. But the
$options['config'] statement seems to be ignored. The settings defined in
drush/drushrc.php are not taking effect.
I believe that the code is correctly defining the root of the Git repository. The
$options['alias-path'] statement seems to take effect as the “example” aliases appear when I run
drush site-alias. The
$options['include'] statement also seems to take effect as the
devify command defined in
drush/commands/build.drush.inc is available.
The configuration options I have specified in
drush/drushrc.php are not taking effect. When I run
drush status, the “Drush configuration” lists
docroot/sites/all/drush/drushrc.php and my user-specific
drushrc.php from my home directory. I would expect to also see the
drush/drushrc.php file listed.
I have tried executing
git rev-parse --show-toplevel. That returns the correct path to the root of the Git repository. I tried explicitly adding the
drush/drushrc.php file by adding the full path in an
$options['config'] statement in
docroot/sites/all/drush/drushrc.php. None of that seems to have been effective.
I’m at my wits end with this. Please help me StackExchange!
- Drush 6.3.0
- Drupal 7.28
- PHP 5.5.11
- Windows 8