function _get_working_copy_option

8.0.x make.utilities.inc _get_working_copy_option($download)
6.x make.utilities.inc _get_working_copy_option($download)
7.x make.utilities.inc _get_working_copy_option($download)
master make.utilities.inc _get_working_copy_option($download)

Gather any working copy options.

Parameters

array $download: The download array.

4 calls to _get_working_copy_option()
DrushMakeProject::make in commands/make/make.project.inc
Build a project.
make_download_bzr in commands/make/make.download.inc
Checks out a Bazaar repository to the specified download location.
make_download_git in commands/make/make.download.inc
Checks out a git repository to the specified download location.
make_download_svn in commands/make/make.download.inc
Checks out an SVN repository to the specified download location.

File

commands/make/make.utilities.inc, line 591
General utility functions for Drush Make.

Code

function _get_working_copy_option($download) {
  $wc = '';

  if (_make_is_override_allowed('working-copy') && isset($download['working-copy'])) {
    $wc = $download['working-copy'];
  }
  else {
    $wc = drush_get_option('working-copy');
  }
  return $wc;
}