Commit c50a0c01 authored by Jon Pugh's avatar Jon Pugh

Issue #2838489: Don't write sites/all/drush/drushrc.php after...

Issue #2838489: Don't write sites/all/drush/drushrc.php after provision-git-clone, so that drush make builds can happen afterwards.
parent 07654de4
......@@ -63,8 +63,10 @@ function provision_drupal_drush_exit() {
elseif (d()->type === 'platform') {
// Don't generate the drushrc.php on provision-save/delete commands.
if (!preg_match("/^provision-(save|delete)/", $command[0])) {
// Don't generate the drushrc.php on provision-save/delete/git-clone commands.
// Avoiding running on git-clone is needed in order to let it work with makefiles in the git repo.
// If this function runs, the platform directory is created, and drush make fails because the directory already exists.
if (!preg_match("/^provision-(save|delete|git-clone)/", $command[0])) {
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