如何安装SVN提交后钩子 [英] how to install svn post-commit hook
问题描述
我正在Linux上运行SVN.我希望一旦提交就运行自动部署.根据我的搜索,提交后svn似乎可以解决问题.但是我在SVN安装中找不到提交后的SVN.所以我想知道这是否是单独的安装?我可以下载并安装任何SVN提交后钩子吗?
I am running SVN on Linux. I was hoping to run auto deployment once committed. Based on my searching, it looks like svn post-commit might do the trick. But I couldn't find SVN post-commit from my SVN installation. So I wonder if it's a separate install? Is there any SVN post-commit hook that I can download and install?
推荐答案
这不是单独的安装.在您的存储库目录中,有一个挂钩"目录.您可以找到post-commit.tmpl,只需修改该文件,然后根据您的操作系统类型将其重命名为可执行文件即可.
It's not a separate install. In your respository directory, there is a 'hooks' dir. You can find post-commit.tmpl, just modify the file and rename it to executable file according your os type.
这篇关于如何安装SVN提交后钩子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!