Easiest/best way to set up SVN commit emails?

前端 未结 4 1961
耶瑟儿~
耶瑟儿~ 2020-12-23 14:58

I\'d like to set up commit emails on a project I\'m work on, as described here:
http://producingoss.com/en/vc.html#commit-emails

That is, use a post commit hoo

4条回答
  •  [愿得一人]
    2020-12-23 15:40

    When creating new repository a sample post-commit hook is provided in hooks/post-commit.tmpl. It contains a line that looks more or less like this:

    /usr/share/subversion/hook-scripts/commit-email.pl "$REPOS" "$REV" commit-watchers@example.org
    

    Just substitute the email with the address you want to send notifications to, rename the script to hooks/post-commit (remove the tmpl extension) and make it executable (chmod a+x).

    When you run the commit-email.pl script without any arguments you will see an usage screen with extra options that allow for example to modify the subject line or the From address.

    Please note that is case of Debian the commit-email.pl script is located in an optional subversion-tools package.

提交回复
热议问题