do not redispatch systematically when we're in backend mode #684
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
since the fix for #555, commands are needlessly redispatched by drush when called with --backend. previous to commit 24addcd, this didn't take effect because the DRUSH_BACKEND context wasn't initialised properly when we were loading aliases. but now that we set that context earlier, the check takes effect, and things get redispatched like crazy.
this seems to happen before Aegir/provision has time to set its own stuff properly (i am guessing: load the good stuff from the alias) so the redispatch fails to load with the proper alias. more details on that are on the aegir issue in https://drupal.org/node/2281983.
this was originally introduced in 510735a to fix #1058874, but the commitlog makes no reference to backend at all, and merely references an obscure php-options variable. the issue mentions something about interactivity in backend mode, but that doesn't matter since it wasn't actually triggered before anyways.
we have yet to run unit tests on this, but with this patch, aegir can install again on drush master.