Take the tour ×  I have a repository that has the following
directories:    • branches   • tags   • trunk  The trunk
directory contains the main line of development. I have created
a post-commit hook script for the repository that updates a
working copy (of trunk) when a user commits back to repository.
It looks something like this:  /usr/bin/svn update
/path/to/a/working/copy  I've just created a branch of the code
as I'm about to start some major changes but noticed that when I
commit my changes to branch it calls the post-commit hook and
updates the working copy (copy of trunk).  Is there a way I can
modify either my post-commit hook script or a setting that I can
make that would only update the working copy if the commit was
made to the trunk directory and not any other directory?
share|improve this question add comment  2 Answers  up vote 3
down vote accepted  As you can see in this documentation,
parameters are passed to the post-commit script.  The repository
passes two arguments to this program: the