Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
据我所知,SVN 本身没有管理 SVN 挂钩的内置功能。当然有一些想法,比如另一个带有钩子脚本的存储库,在提交时运行svn export到hooks目录,但是你会怎么做呢?
svn export
hooks
我认为将 hooks 目录设置为 subversion checkout 并没有错。所以在提交钩子之后,你只需要svn up在钩子目录中,作为提交后的动作。
svn up
我认为它也应该使 hooks 目录成为它正在管理的存储库的检出。
我在我的一个存储库中有由 SVN 管理的钩子。不过,这不是同一个存储库;我创建了第二个 SVN 存储库来保存第一个的钩子。我担心提交错误会破坏对主仓库的访问。