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?
-
Why do you need to run that hook script on client side ? What would you like to achieve?khmarbaise– khmarbaise2011-12-13 14:29:55 +00:00Commented Dec 13, 2011 at 14:29
-
@khmarbaise I also want to know how to execute hook script on client side. I want to install a pre-commit hook to check my commit however I don't have the permission to install the script on the svn server. Based on the answers I can use TortoiseSVN to do this.kkpattern– kkpattern2016-05-25 01:50:45 +00:00Commented May 25, 2016 at 1:50
2 Answers
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.
2 Comments
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.