From 6f5f3c4aa5b8e4bc8925aa28fff8bd0ebddc0156 Mon Sep 17 00:00:00 2001 From: Alberto Bertogli Date: Sun, 10 Mar 2013 00:11:41 +0000 Subject: Add a post-receive hook This patch adds a post-receive hook that can be used to trigger a git-arr update when there is a push to a repository. Signed-off-by: Alberto Bertogli --- hooks/README | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 hooks/README (limited to 'hooks/README') diff --git a/hooks/README b/hooks/README new file mode 100644 index 0000000..c906f51 --- /dev/null +++ b/hooks/README @@ -0,0 +1,14 @@ + +You can use the post-receive hook to automatically generate the repository +view after a push. + +To do so, configure in your target repository the following options: + + $ git config hooks.git-arr-config /path/to/site.conf + $ git config hooks.git-arr-output /var/www/git/ + + # Only if the git-arr executable is not on your $PATH. + $ git config hooks.git-arr-path /path/to/git-arr + +Then copy the post-receive file to the "hooks" directory in your repository. + -- cgit v1.2.3