The best resources for developers

How do I make Subversion (SVN) send emails on checkins?

REPOS="`echo $1 | sed "s//{root of repository}//g"` "
MSG=`/usr/local/bin/svn log -v -r HEAD https://localhost$REPOS`

/usr/local/bin/msmtp {list of recipients} <<EOF
Subject: SVN-Commit $REPOS#$REV
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8Bit


Tags: svn hook post-commit post-commit-hook

Source: By Joe Ludwig as answer to the question

This code snippet was collected from stackoverflow, and is licensed under CC BY-SA 3.0

Related code-snippets: