Closed (works as designed)
Project:
Drush
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Oct 2009 at 16:32 UTC
Updated:
7 Oct 2009 at 16:52 UTC
I am trying to specify a site root with --root and it is failing to find the settings.php file.
The root is validating properly with drush_valid_drupal_root(), but _drush_bootstrap_drupal_site_validate() is failing as drupal_site_path() is called without passing the validated root, and then in drupal_site_path() it calls drupal_locate_root() which once again returns the wrong value, because none of these functions are being passed the root set with --root.
I'm not really sure why this hasn't shown up previously.
Comments
Comment #1
mikey_p commentedNevermind, I forgot that drush CWD to the drupal root to finish bootstrapping, and I had a permissions issue.