Closed (fixed)
Project:
Drush
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
28 Dec 2009 at 22:44 UTC
Updated:
11 Jan 2010 at 22:50 UTC
This code is wrong:
if ((isset($options)) && (array_key_exists('site-aliases', $options))) {
$cache =& drush_get_context('drush'); // <-- GETS A REFERENCE TO THE DRUSH CONTEXT
if (array_key_exists('site-aliases', $cache)) {
$cache['site-aliases'] = array_merge($cache['site-aliases'], $options['site-aliases']);
}
else {
$cache['site-aliases'] = $options['site-aliases'];
}
unset($options['site-aliases']);
}
drush_set_context($context, $options); // <-- IF CONTEXT IS "drush", THEN WE OVERWRITE THE CHANGE ABOVE
The easiest fix is to just move the site aliases to the 'alias' context, which is never set in by drush_load_config().
| Comment | File | Size | Author |
|---|---|---|---|
| alias-cache.patch | 886 bytes | greg.1.anderson |
Comments