Note: You are currently viewing documentation for Moodle 3.9. Up-to-date documentation for the latest stable version of Moodle may be available here: Upgrade warnings.

Upgrade warnings: Difference between revisions

From MoodleDocs
m (Update Moodle version and simplify)
(Updated Moodle branch version references to 3.2)
Line 1: Line 1:
If you reached this page from a warning during an upgrade from a stable version then it's probable that some of our branch changes have affected you.
If you reached this page from a warning during an upgrade from a stable version then it's probable that some of our branch changes have affected you.


If you intend to stay with the most recent stable version of Moodle, then you need to switch your checkout over to use the appropriate MOODLE_3x_STABLE branch (such as MOODLE_30_STABLE, MOODLE_31_STABLE etc).
If you intend to stay with the most recent stable version of Moodle, then you need to switch your checkout over to use the appropriate MOODLE_3x_STABLE branch (such as MOODLE_30_STABLE, MOODLE_31_STABLE, MOODLE_32_STABLE, etc).


If you are using Git, then you must create new local branch that will track the remote stable branch and switch to it.
If you are using Git, then you must create new local branch that will track the remote stable branch and switch to it.


     git checkout -b MOODLE_30_STABLE origin/MOODLE_30_STABLE
     git checkout -b MOODLE_32_STABLE origin/MOODLE_32_STABLE
     git pull
     git pull


Replace 30 with the relevant Moodle version. At the first line, the new local branch MOODLE_30_STABLE is created and set to track the remote branch of the same name. At the second line, the git-pull command fetches recent changes from the upstream and merges them into your local branch. To update your Moodle next week, you can run just this second line.
Replace 32 with the relevant Moodle version. At the first line, the new local branch MOODLE_32_STABLE is created and set to track the remote branch of the same name. At the second line, the git-pull command fetches recent changes from the upstream and merges them into your local branch. To update your Moodle next week, you can run just this second line.


For more about how Moodle versions are managed in Git, see our [[dev:Moodle_versions]] page.
For more about how Moodle versions are managed in Git, see our [[dev:Moodle_versions]] page.

Revision as of 23:14, 17 March 2017

If you reached this page from a warning during an upgrade from a stable version then it's probable that some of our branch changes have affected you.

If you intend to stay with the most recent stable version of Moodle, then you need to switch your checkout over to use the appropriate MOODLE_3x_STABLE branch (such as MOODLE_30_STABLE, MOODLE_31_STABLE, MOODLE_32_STABLE, etc).

If you are using Git, then you must create new local branch that will track the remote stable branch and switch to it.

   git checkout -b MOODLE_32_STABLE origin/MOODLE_32_STABLE
   git pull

Replace 32 with the relevant Moodle version. At the first line, the new local branch MOODLE_32_STABLE is created and set to track the remote branch of the same name. At the second line, the git-pull command fetches recent changes from the upstream and merges them into your local branch. To update your Moodle next week, you can run just this second line.

For more about how Moodle versions are managed in Git, see our dev:Moodle_versions page.

See also