Installing and upgrading help

git clone from github - latest branch - documentation needs update?

 
Picture of Kay Mo
git clone from github - latest branch - documentation needs update?
 

I tried to clone the git repo using the installation documentation :

ref: https://docs.moodle.org/34/en/Installation_quick_guide


git clone -b MOODLE_{{Version2}}_STABLE git://git.moodle.org/moodle.git

the shell window answers an error message:

fatal: unable to connect to git.moodle.org:
git.moodle.org[0: 34.210.133.53]: errno=Connection refused


Instead I used the github repo and cloned using the command suggested on github:

git clone https://github.com/moodle/moodle.git

=> Success: It looks like the master is downloaded on my server with no error.


Here are my questions:

1) Does anyone know how to use a shell command to update with the latest branch from github (instead of master)?

2) Is it possible to update the documentation to update it with the cloning via github and who to connect with?


Thank you!

Kay



 
Average of ratings: -
Picture of Ken Task
Re: git clone from github - latest branch - documentation needs update?
Particularly helpful Moodlers

Error could have been a hickup in networking ... route to git.moodle.org or the server might have been undergoing some maintance (this being the Wed before Turkey day in some areas of the globe).

Anyhoo, just tested pulling down the code at git.moodle.org ... no errors.

The -b sets the branch and if I re-call correctly mean that all your git pulls will work on that version, but trying to set the branch higher (when 3.5 is released) via:

git branch --track MOODLE_35_STABLE origin/MOODLE_35_STABLE
git checkout MOODLE_35_STABLE

will not work.   Unless that behavior has changed.

I think If you wait about a couple of weeks, when development begins on 3.5dev the default branch with no optons in git command would be 3.5dev ... nothing 'stable' there yet.

The other URL you used is the alt way ... not sure, but think Moodle HQ prefers you use the git.moodle.org server(s).

Just a lowly user response here ... will reserve any corrections to those that know for sure!

'spirit of sharing', Ken


 
Average of ratings: Useful (1)
Picture of Kay Mo
Re: git clone from github - latest branch - documentation needs update?
 

Thank you Ken! 

I am using the current version using this command:

$ git checkout MOODLE_34_STABLE

and will use :

$ git pull

for  updates on this...


BTW, I did not know the 3.5 is coming so soon!

Will checkout on it then.

Thanks again



 
Average of ratings: -
poseypic
Re: git clone from github - latest branch - documentation needs update?
Core developersTesters
I see where you may have got confused here, as the docs do state to type
git clone -b MOODLE_{{Version2}}_STABLE git://git.moodle.org/moodle.git 
 Not sure if this is a bug in the docs, or someone has forgotten to change this (though 3.2 and 3.3 docs also said this)! It should indeed read;
git clone -b MOODLE_34_STABLE git://git.moodle.org/moodle.git 

But Ken's comments will get you on the right track! smile
 
Average of ratings: -
Picture of Emma Richardson
Re: git clone from github - latest branch - documentation needs update?
Documentation writersParticularly helpful Moodlers

I think it means to replace that with the correct version but if it is confusing, feel free to fix that - the docs are a wiki!

 
Average of ratings: -
poseypic
Re: git clone from github - latest branch - documentation needs update?
Core developersTesters

Yeah probably! Already done smile

 
Average of ratings: -