Installation

Edit This Page
  1. After successful purchase, you will get an email with link to download ac_gitolite.zip file.

  2. Unzip it and uploadac_gitolite folder to your activeCollab’s custom/modules folder. [make sure the folder name must be “ac_gitolite”]

  3. Then go to your activeCollab Administration » Modules screen. You will see AC Gitolite module there. Just click on Install button.

  4. Then go back to the Administration **screen. You will see **Gitolite Settings icon in “Projects” option row. Click on it.

  5. On the next screen, click on **“Start Setup” **button. 

  6. You can select an option as per your need (if you have already installed or new installation) of Gitolite server. Then simply enter “Gitolite User” and “Gitolite Server Address”. support-for-remote-gitolite-server-1 support-for-remote-gitolite-server-1 ac-new4.1

  7. After that, add the port number (you may run it on 22 by default or on which port you want to run it).

  8. Follow the instruction display on below screen at the time of new installation. run this script

  9. Final step, click on Save Settings button. ac-new3.1

Congratulations. Your Gitolite setup is now complete. :-)

Post-receive hook setup for instant update

If you have setup Gitolite using install.sh (via this script) bundled with this module, you can skip this step because the script automatically configures post-receive hook for you.

By default, activeCollab updates source repositories by cron-jobs. Depending on your cron-jobs setting, newly pushed commits may get delayed in activeCollab interface. By setting up a common post-receive hook you can force activeCollab to fetch new commits as soon as your team push codes to Gitolite server.

To create a post-receive hooks file please follow these simple steps:

  1. Go to Administration -> tools -> Scheduled tasks

  2. Now copy the command to execute task frequently. This command would end in ‘/Frequently.php’.

  3. Now go to Gitolite server terminal and execute the following commands:

sudo su - username
cd ~/.gitolite/hooks/common/
vim post-receive
  1. Now paste the above ‘Frequently.php’ code here and save it. Now quit vim

  2. Next execute these commands:

chmod a+x ~/.gitolite/hooks/common/post-receive
~/bin/gitolite setup --hooks-only