开发者

How to find out in a post-commit-hook if the current revision is creating a branch/tag?

开发者 https://www.devze.com 2023-02-09 05:48 出处:网络
I want to write a post-commit hook that only triggers, if the current commit is creating a new tag. Tags are copied to a /tags/*new_tag_name*/ directory. My motivation is, if the commit is creating a

I want to write a post-commit hook that only triggers, if the current commit is creating a new tag. Tags are copied to a /tags/*new_tag_name*/ directory. My motivation is, if the commit is creating a new tag, the new tag should be checked out in my web root director开发者_StackOverflow中文版y.

How can I do this in the post-commit script, where I only have the svn name and revision number as function parameters?


This is answered already in this SVN pre-commit hook for avoiding changes to tags subdirectories comment.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号