subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Levy <andy.l...@gmail.com>
Subject Re: Copying hooks automatically upon repository creation
Date Mon, 04 Oct 2010 18:40:03 GMT
On Mon, Oct 4, 2010 at 13:51, Tech Geek <techgeek12345@gmail.com> wrote:
> We use one repository per project. All repository lives in /var/lib/svn/.
>
> Also we use the hooks post-commit and pre-commit for every repository. Right
> now we have to manually copy these two hooks whenever a new repository is
> created.
> For example:
> cd /var/lib/svn/
> cp /path-to-my-hooks/* projectA/hooks
> cp /path-to-my-hooks/* projectB/hooks
> cp /path-to-my-hooks/* projectC/hooks
>
> Is there any way to automate this process?
>

Write a script to automate your repository creation process, and
include copying hooks in that script.

Mime
View raw message