Commit 3df2bd4d authored by Jon Pugh's avatar Jon Pugh
Browse files

Issue #2960237 by Jon Pugh: Sites on remote servers fail on Platforms that use...

Issue #2960237 by Jon Pugh: Sites on remote servers fail on Platforms that use git or composer, with Drupal in a subfolder. Allow other tools to alter the sunc path.
parent 8166e179
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -108,7 +108,9 @@ function provision_drupal_push_site($override_slave_authority = FALSE) {
  ));

  // Sync the platform
  d()->service('http')->sync(d()->root, array('exclude-sites' => TRUE));
  $sync_path = d()->root;
  drush_command_invoke_all_ref('provision_platform_sync_path_alter', $sync_path, d());
  d()->service('http')->sync($sync_path, array('exclude-sites' => TRUE));

  if (d()->type === 'site') {
    // Check whether we're hosted on a cluster, in which case, the master is