function drush_make_resolve_git_refs

master generate.contents.make.inc drush_make_resolve_git_refs(&$project)

Resolve branches and revisions for git-based projects.

1 call to drush_make_resolve_git_refs()
make_generate_from_makefile in commands/make/generate.contents.make.inc
Write a makefile based on data parsed from a previous makefile.

File

commands/make/generate.contents.make.inc, line 177
Functions for the generate makefile command.

Code

function drush_make_resolve_git_refs(&$project) {
  if (!isset($project['download']['branch'])) {
    $project['download']['branch'] = drush_make_resolve_git_branch($project);
  }
  if (!isset($project['download']['revision'])) {
    $project['download']['revision'] = drush_make_resolve_git_revision($project);
  }
}