客户端钩子脚本执行 [英] Hook script execution on client side
问题描述
我正在处理一个 SVN 项目,我需要从客户端执行我的预提交钩子脚本.有没有办法执行它们?
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?
推荐答案
创建一个脚本文件,作为 svn
命令的别名,如果你使用命令行,就像这篇文章建议的那样:http://top-frog.com/2009/04/23/client-side-pre-and-post-svn-hooks-with-unix-aliases/
Create a script file that is an alias for the svn
command if you are using the command-line as this post suggests: http://top-frog.com/2009/04/23/client-side-pre-and-post-svn-hooks-with-unix-aliases/
您只需将包含脚本文件的目录放在包含 SVN 可执行文件的目录之前的系统路径环境变量中.
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.
这篇关于客户端钩子脚本执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!