Commit 6313007b authored by anarcat's avatar anarcat Committed by anarcat

do not use relative mode, it breaks symlinks

Fixes: #946422
parent c07af2d9
......@@ -170,7 +170,6 @@ class provisionContext_server extends provisionContext {
if (provision_file()->exists($path)->status()) {
$options = array_merge(array(
'relative' => TRUE,
'omit-dir-times' => TRUE,
'delete' => TRUE,
), $additional_options);
......@@ -183,7 +182,9 @@ class provisionContext_server extends provisionContext {
$options['delete'] = TRUE;
}
if (drush_core_call_rsync(escapeshellarg($path), escapeshellarg($this->script_user . '@' . $this->remote_host . ':/'), $options, TRUE, FALSE)) {
// XXX: we assume the same directory prefix on remote
$dir = dirname($path);
if (drush_core_call_rsync(escapeshellarg($path), escapeshellarg($this->script_user . '@' . $this->remote_host . ':' . $dir), $options, TRUE, FALSE)) {
drush_log(dt('@path has been synced to remote server @remote_host.', array('@path' => $path, '@remote_host' => $this->remote_host)));
}
else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment