Commit 050f3a75 authored by anarcat's avatar anarcat Committed by anarcat

pass --working-copy parameter all the way down to drush make

parent f781ce9a
......@@ -151,7 +151,12 @@ function drush_provision_hostmaster_install($site = NULL) {
'root' => $platform,
'makefile' => drush_get_option('makefile'),
));
provision_backend_invoke($platform_name, 'provision-verify');
// propagate working-copy args downward
$options = array();
if (drush_get_option('working-copy')) {
$options['working-copy'] = 1;
}
provision_backend_invoke($platform_name, 'provision-verify', array(), $options);
// exit if an error has occured.
if (drush_get_error()) {
......
......@@ -47,7 +47,12 @@ function drush_provision_drupal_pre_provision_verify() {
// create a platform from a makefile, if it doesnt already exist and the makefile does.
if (!provision_file()->exists(d()->root)->status() && !empty(d()->makefile)) {
drush_log(dt("Platform path does not exists, fetching from drush makefile"));
drush_backend_invoke("make", array(d()->makefile, d()->root), array('root' => null, 'uri' => null));
$options = array('root' => null, 'uri' => null);
// propagate working-copy args downward
if (drush_get_option('working-copy')) {
$options['working-copy'] = 1;
}
drush_backend_invoke("make", array(d()->makefile, d()->root), $options);
if (drush_get_error()) {
return drush_set_error("DRUSH_MAKE_FAILED",
"Could not download platform using drush make. No platform present");
......
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