uocsclub / tryoutmanager

Tool for hosting uoCSClub tryouts for csgames

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Investigate whether Gitolite allows for server-side post-push hooks

cannotparse opened this issue · comments

As per Jules suggestion:
We should investigate whether Gitolite allows for server-side post-push hooks which we can use either through Pyolite or through a dedicated internal endpoint (i.e. a push to a branch results in a curl requrest to our endpoint or some analogous action, which updates our models).

Im gonna assume we can add our own post-receive hooks server side (because thats a git feature).
And then we get to do whatever we want with that, remembering that we want to avoid long running hooks
Now if I could get a test server going... I could check this out

Hmmm, well I was able to find this... so I guess we could package a few hooks and on setup we place them in the right spot.
Here is a python example as well

and here's how we add it to the gitolite conf