That git command should have also shown this:
warning: Remote branch MOODLE_24-sTABLE not found in upstream origin, using HEAD instead
Which translated means the 2.5dev version.
See the small case 's'. Linux/git is case sensitive
To fix it is easy. change into the moodle directory that was created when you issued the git command:
git branch -a
Should show you this:
* master
remotes/origin/HEAD -> origin/master
remotes/origin/MOODLE_13_STABLE
remotes/origin/MOODLE_14_STABLE
remotes/origin/MOODLE_15_STABLE
remotes/origin/MOODLE_16_STABLE
remotes/origin/MOODLE_17_STABLE
remotes/origin/MOODLE_18_STABLE
remotes/origin/MOODLE_19_STABLE
remotes/origin/MOODLE_20_STABLE
remotes/origin/MOODLE_21_STABLE
remotes/origin/MOODLE_22_STABLE
remotes/origin/MOODLE_23_STABLE
remotes/origin/MOODLE_24_STABLE
remotes/origin/master
The to correct the version:
git branch --track MOODLE_24_STABLE origin/MOODLE_24_STABLE
git checkout MOODLE_24_STABLE
To check: git branch -a should show (see the *):
git branch -a
* MOODLE_24_STABLE
master
remotes/origin/HEAD -> origin/master
remotes/origin/MOODLE_13_STABLE
remotes/origin/MOODLE_14_STABLE
remotes/origin/MOODLE_15_STABLE
remotes/origin/MOODLE_16_STABLE
remotes/origin/MOODLE_17_STABLE
remotes/origin/MOODLE_18_STABLE
remotes/origin/MOODLE_19_STABLE
remotes/origin/MOODLE_20_STABLE
remotes/origin/MOODLE_21_STABLE
remotes/origin/MOODLE_22_STABLE
remotes/origin/MOODLE_23_STABLE
remotes/origin/MOODLE_24_STABLE
remotes/origin/master
To assure yourself you are using the 2.4 version:
fgrep '$release' version.php
from the same directory should show:
$release = '2.4+ (Build: 20121230)'; // Human-friendly version name
Now finish with web based portion of install.
'spirit of sharing', Ken