Skip to content

Commit

Permalink
Clean the export directory via the config storage (#2638)
Browse files Browse the repository at this point in the history
  • Loading branch information
bircher authored and weitzman committed Feb 23, 2017
1 parent 626f5fc commit 0679377
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/core/config.drush.inc
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ function _drush_config_export($destination, $destination_dir, $branch) {
return drush_user_abort();
}
// Only delete .yml files, and not .htaccess or .git.
drush_scan_directory($destination_dir, '/\.yml$/', array('.', '..'), 'unlink');
$target_storage->deleteAll();
}

// Write all .yml files.
Expand Down

0 comments on commit 0679377

Please sign in to comment.