-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drush rsync generates fatal error when using wildcard. #929
Comments
I'm not clear what your source and path are, and what your dest and path are. Your desired outcome is unclear. |
I'm trying to use rsync to transfer multiple files by using wildcard, e.g.
So I'm expecting two files to be transfered, settings.php and e.g. settings.local.php. |
Please see the help for this command. You specify a path to the dir you |
So it needs to be either single file or path, because drush doesn't support wildcards? E.g.
The same test with drush:
|
Please use site aliases in the arguments to drush rsync. In your example, You might as well use |
Drupalish sample use case:
None of above |
I should clarify that the --root issue looks fixed. There may be an incompatibility with Drush and wildcards. Feel free to submit a patch. |
5th example was ran within Drupal root, so |
#938 is closed. |
Testing on the latest drush. Without
With
|
This appears to still be an issue with db55a72 (Latest as of 27 Feb 2015 according to drush rsync /Users/David/Development/main-client/code/sites/en/themes/uk/* @client-en.dev:%themes/uk
PHP Fatal error: Cannot unset string offsets in Users/David/.composer/vendor/drush/drush/includes/sitealias.inc on line 1881 If anyone has any ideas I'd appreciate them. Happy to provide further debugging information if needed |
Folks, drush rsync supports TWO parameters, no more, no less. When you use wildcards, like test*, then the shell is going to expand the wildcards before passing them to Drush, so you will get more than two parameters.
Now, the rsync command itself does support things like I somehow don't think that it is super pressing to support this, but I imagine a PR would be welcome. |
I've the following sample drush alias files:
When I'm trying to rsync multiple files, but I've got the following error:
It is a bug, or you're just not allowed to do that?
Drush Version : 7.0-dev
The text was updated successfully, but these errors were encountered: