2011-10-26 21:57:51 +01:00
|
|
|
===================== Setup gitolite
|
|
|
|
|
|
|
|
--------------- As root (sudo su -) on server
|
|
|
|
|
|
|
|
* urpmi.addmedia --distrib --mirrorlist '$MIRRORLIST'
|
|
|
|
* urpmi git
|
|
|
|
* useradd git
|
|
|
|
* passwd git
|
|
|
|
|
|
|
|
--------------- As user who will manage gitolite
|
|
|
|
|
|
|
|
* scp -o preferredauthentications=password ~/.ssh/id_rsa.pub git@gitolite:/tmp/ga_admin.pub
|
|
|
|
|
|
|
|
--------------- As git user (su - git) on server
|
|
|
|
|
|
|
|
* git clone git://github.com/sitaramc/gitolite
|
|
|
|
* cd gitolite
|
|
|
|
* src/gl-system-install
|
|
|
|
* gl-setup /tmp/ga_admin.pub
|
|
|
|
|
|
|
|
--------------- As user who will manage gitolite
|
|
|
|
|
2011-10-28 14:27:12 +01:00
|
|
|
* cd /share # /var/rosa
|
2011-10-26 21:57:51 +01:00
|
|
|
* git clone git@gitolite:gitolite-admin
|
2011-10-28 14:27:12 +01:00
|
|
|
* ln -s /home/git/repositories git_projects
|
|
|
|
* sudo chmod -R +r /home/git/repositories
|
|
|
|
|
|
|
|
--------------- Settings for .gitolite.rc
|
|
|
|
|
|
|
|
* $REPO_UMASK = 0022;
|
|
|
|
|
|
|
|
--------------- Setup hooks
|
|
|
|
|
|
|
|
* cd /home/git/.gitolite/hooks/common
|
|
|
|
* mv update.secondary.sample update.secondary
|
|
|
|
* mkdir update.secondary.d
|
|
|
|
* touch update.secondary.d/update.auto-build
|
|
|
|
* chmod +x update.secondary update.secondary.d/update.auto-build
|