如何安装 svn post-commit 钩子 [英] how to install svn post-commit hook
问题描述
我在 Linux 上运行 SVN.我希望一旦提交就运行自动部署.根据我的搜索,看起来 svn post-commit 可以解决问题.但是我无法从我的 SVN 安装中找到 SVN post-commit.所以我想知道它是否是单独的安装?有没有我可以下载和安装的 SVN post-commit 钩子?
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 post-commit 钩子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!