Currently, if a git branch is specified, drush make tries to create a local branch automatically. For [branch] = "dev", this is e.g.
git checkout -b dev origin/dev

This fails if the branch already exists. This happens when the branch happens to be the branch automatically checked out upon clone (normally, this is "master", but that's just convention).

With the attached patch, it first tries to check out the branch directly, and if that fails, tries to check out origin/branchname (as now).

CommentFileSizeAuthor
drush_make_git_existing_branch.patch1.25 KBFrando

Comments

dmitrig01’s picture

Status: Needs review » Fixed

Great, thanks

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.