From: http://christian.amsuess.com/chrysn Date: Thu, 30 Jan 2014 15:24:34 +0000 (-0400) Subject: on ikiwiki with gitolite X-Git-Tag: debian/3.20140227~36 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/d33a651051ef03e1d61fde71113c873972d258b4?hp=b3c99d9368d11125779ebc7e6537c7967b2112bc on ikiwiki with gitolite --- diff --git a/doc/tips/Hosting_Ikiwiki_and_master_git_repository_on_different_machines.mdwn b/doc/tips/Hosting_Ikiwiki_and_master_git_repository_on_different_machines.mdwn index baf7ac6c8..35feacb71 100644 --- a/doc/tips/Hosting_Ikiwiki_and_master_git_repository_on_different_machines.mdwn +++ b/doc/tips/Hosting_Ikiwiki_and_master_git_repository_on_different_machines.mdwn @@ -149,3 +149,8 @@ the IkiWiki machine, and here is the deadlock. Explanations of the command: - *Using [[gitolite|https://github.com/sitaramc/gitolite]] to manage repositories on the git machine* Simply replace the manipulations of git on the git machine by the corresponding manipulations using gitolite. + * With gitolite, you can use this line in a `post-update` hook: + + `[ x"$GL_USER" = x"`*`gitolite-user`*`" ] || wget ...` + + thus, you filter out precisely the events that originate from the server-to-be-pinged, no matter what the commit id says. (For example, if you push commits you created on a local CGI ikiwiki, they'd be called '@web' as well).