the upgrade.sh should checkout automatically the 6.x-2.x branch after cloning the head, but in my environment it did not. Installation fails to https://gist.github.com/anonymous/a8b735e1bef22acca077 and going to /var/aegir/.drush/provision to say git status it says I am still in 6.x-1.x branch and that is the reason why the drush_backend_invoke_args() gives fatal (it is obsolete with drush 5).

Fix was easy:
http://drupalcode.org/project/provision.git/blob/refs/heads/6.x-2.x:/upg...

change

 if [ "$AEGIR_VERSION" = "6.x-2.x" ]; then
  git clone --branch '$AEGIR_VERSION' http://git.drupal.org/project/provision.git $HOME/.drush/provision
else

to:

 if [ "$AEGIR_VERSION" = "6.x-2.x" ]; then
  git clone --branch $AEGIR_VERSION http://git.drupal.org/project/provision.git $HOME/.drush/provision
else
CommentFileSizeAuthor
#1 upgrade-checkout-brach-2109637-2.patch565 byteswroxbox
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

wroxbox’s picture

And here is the patch

wroxbox’s picture

Status: Active » Needs review
helmo’s picture

Status: Needs review » Fixed

The single quotes were preventing the variable from being expanded... should have been double quotes.

Committed 1130a9b80415b1352a96c7982ad718fab7b7bf41

I've also fixed #2109759: Update upgrade.sh script to get drush from Github

Status: Fixed » Closed (fixed)

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

  • Commit 1130a9b on 6.x-2.x, 7.x-3.x, 6.x-2.x-backports, dev-helmo-3.x by helmo:
    Issue #2109637 by wroxbox: Fixed upgrade.sh script fails to checkout 6.x...