priya
priya

Reputation: 115

Hook script execution on client side

I am working on a SVN project, and I need to execute my pre-commit hook script from the client side. Is there any way to execute them?

Upvotes: 8

Views: 6795

Answers (2)

rstackhouse
rstackhouse

Reputation: 2326

Create a script file that is an alias for the svn command if you are using the command-line as this post suggests: https://web.archive.org/web/20221127195259/http://top-frog.com/2009/04/23/client-side-pre-and-post-svn-hooks-with-unix-aliases/ You just need to put the directory containing the script file in your system's path environment variable before the directory containing the SVN executable.

Upvotes: 7

khmarbaise
khmarbaise

Reputation: 97527

The only possible solution is to use TortoiseSVN which has the opportunity to execute special Hook Script (only from TortoiseSVN) on the client side. Otherwise it's not possible to run Hook Scripts, cause they run allways on the server side.

Upvotes: 5

Related Questions