You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Users should be able to add or remove git hooks for every repository (excluding gitolite-admin). This will probably require Java-Gitolite-Manager to be run on the git server (preferably on the git user).
Perl because, that's what Gitolite is using in the already existing post-update hook of my testing repo. I can easily switch to bash, but for now it's just to find out how these hooks work and test them. Also, my current aim is just to be able to notify a web server that a certain repository has received a push. It's up to that web server to determine if it's interested in fetching stuff like logs/diffs/branches.
Activity
michaeldejong commentedon Sep 9, 2013
I've been trying to figure out how to write a
post-updatehook so I'll be able to notify a HTTP server.alexnederlof commentedon Sep 9, 2013
Why PERL? All variables are passed in a hook.
https://www.kernel.org/pub/software/scm/git/docs/githooks.html
You can use CURL to do form a POST body in Json and deliver that to a webserver.
michaeldejong commentedon Sep 9, 2013
Perl because, that's what Gitolite is using in the already existing
post-updatehook of my testing repo. I can easily switch to bash, but for now it's just to find out how these hooks work and test them. Also, my current aim is just to be able to notify a web server that a certain repository has received a push. It's up to that web server to determine if it's interested in fetching stuff like logs/diffs/branches.