Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Don't checkout any revision when cloning.
Browse files Browse the repository at this point in the history
This guards us against git refusing to checkout the given tag due to
oddities in the repo. For instance, Drupal 8-beta11ish managed to commit
a binary file with line ending conversion, which causes the file to be
locally modified on checkout. That would have broken core support until
they fixed it, without this change.
  • Loading branch information
xendk committed Jun 2, 2015
1 parent 5930d9f commit 6995eb4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bandaid.drush.inc
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,8 @@ function _bandaid_clone_from_info($project, $path) {
/**
* Clone a repo, with caching.
*
* Doesn't check any revision out initially.
*
* Uses the same cache as Drush make, code mostly lifted from makes
* implementation.
*/
Expand Down Expand Up @@ -827,7 +829,10 @@ function _bandaid_clone($repo, $path) {
$git_cache = $project_cache;
}

$options = array();
$options = array(
// Don't check anything out initially.
'no-checkout' => TRUE,
);
if (drush_get_context('DRUSH_VERBOSE')) {
$options += array(
'verbose' => TRUE,
Expand Down

0 comments on commit 6995eb4

Please sign in to comment.