Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Tree: b1809e43a3
Fetching contributors…

Cannot retrieve contributors at this time

49 lines (33 sloc) 1.773 kB
Snitch is an git/subversion post-commit service integration helper. SCMs typically have a post commit hook which is executed each time you commit a change to a repository. Snitch makes it really easy to hook into the post-commit and send the commit message along with the files changed to various services on the web.
Snitch currently works with campfire, twitter and email.
NOTE: the twitter gem will not work with a 0.5+ version of hpricot at this time due to a xml parsing bug
1. sudo gem install hpricot --source -v 0.4.86
2. sudo gem install twitter tinder snitch
Needed for the git support:
sudo gem sources -a
sudo gem install mojombo-grit open4 mime-types
3. Create a configuration file (default is /home/deploy/.snitch) that looks like the following (be sure to fill in all the values). Be sure that none of the tabs from below get stay in the config file. It gets parse by yaml so formatting is important.
# what is the location of svnlook (you can find this on *nix boxes by typing `which svnlook`)
svnlook: /usr/bin/svnlook
# If you want git support, comment out the line above and uncomment this one:
# git: true
# what services would you like to send commit messages to?
:room: Development
4. Create or edit the post-commit file inside your repository to look like the following. Be sure to edit the CONFIG_FILE variable to wherever you created your config file in step 3.
snitch $REPOS $REV $CONFIG_FILE 2> /tmp/snitch
Jump to Line
Something went wrong with that request. Please try again.