No description, website, or topics provided.
Python Shell
Switch branches/tags
Nothing to show
Pull request Compare This branch is 1 commit ahead, 1 commit behind certik:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Github Hooks for Spilka

These hooks setup the following addresses:

That you then put into the Admin/Service Hooks/Post-Receive URLs of your repository at github and github then access those URLs wheneve someone pushes something into that repository at github.

These URLs are served at Spilka, so apache launches the or scripts (see this git repo) and they update the local git repositories (mirrors) at Spilka as well as update the docs or anything else that is needed.


Redirect to your server. Add this to your apache config:

<VirtualHost *>
    DocumentRoot /var/www3/hooks
    <Directory /var/www3/hooks>
        Options ExecCGI +FollowSymLinks
        Allow from all
        AllowOverride all
        Order allow,deny
        AddHandler cgi-script cgi py

    ErrorLog /var/log/apache2/gitweb_error.log

And create /var/www3/hooks/ (with the contents of the file from this git repo).

And then put this into your sudoers file:

www-data ALL=NOPASSWD: /bin/su git -c /bin/sh
www-data ALL=NOPASSWD: /bin/su git -c /bin/sh

and create the and scripts (take them from this git repo).

Then just setup the origin remote in the /home/git/repositories/hermes.git to point to the github repo you want to pull from:

git remote add origin git://

Then add the url to the Post-Receive URLs in the admin site.

You can test it by accessing the url, it should print:

Running update script.
Running as:
uid=1009(git) gid=1009(git) groups=1009(git),1011(h2dev),1012(femhubdev)
Updating repository...