Run CentOS myself as well ...
See the * master line?
Sorry, been a while since I've tinkered with this ... In the new directory, git doesn't know what branch you're tracking (remember we're cheating here!).
So:
git pull
to pull down the 22 and 23 ... remember we started with 21
git branch --track MOODLE_23_STABLE origin/MOODLE_23_STABLE git checkout MOODLE_23_STABLE
For good measure (may not be necessary, but let's be sure):
git pull
After that, one checks with:
git branch -a
and one should see that the master is now set to MOODLE_23_STABLE.
* MOODLE_23_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/master
Since you are running CentOS assume apache user and group is 'apache' so while in WZC issue:
chown apache:apache ../WZC -R
Remember, this will only affect the files in WZC and won't automagically git update any other directory.
Hmmmm ... htdocs kinda indicates something other than a standalone install of CentOS from net or CD/DVD. Lightweight Terminal Services version for CentOS? A Fedora repo? Bitnami? or other?
'spirit of sharing', Ken