1

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 directory.

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

Thomas
  • 10,289
  • 13
  • 39
  • 55

1 Answers1

1

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

Community
  • 1
  • 1
chx
  • 11,270
  • 7
  • 55
  • 129