#!/bin/sh # This is a template for the post-commit hook, present in # every '/path/to/repo/hooks/post-commit'. # The post-commit is called by the svn system as # post-commit /path/to/repo revision # Repocafe uses the post-commit hooks to send email notifications # of commits to the repo's watchers. # The post-commit hook is installed by 'new-commit-hook', when a # repository is created. # If/when you change this template, you can install a fresh # post-commit hook in every repo with 'new-commit-hook -post -a'. # It needs to chdir to %dir_admin% to find Repo.pm. cd %dir_admin% exec /usr/bin/perl -w mail-watchers $@ %repo_id%