view scripts/notify-roundup/git/post-commit @ 4205:1c3380e5590a gsoc-2009

Added git post-commit script
author Pygi <pygi@users.sourceforge.net>
date Mon, 13 Jul 2009 17:53:58 +0000
parents
children
line wrap: on
line source

#!/bin/sh
#
# An example hook script that is called after a successful
# commit is made.
#
# It is used for Roundup notification after a commit.

PYTHON=/usr/bin/python
NOTIFY=/path/to/your/notify-roundup.py
CONFIG=/path/to/your/notify-roundup.ini
REPOS=`/bin/pwd`
REV="cd `/bin/pwd` ; /usr/bin/git log --pretty=format:%h | head -n1 "
PYTHONPATH=/path/to/your/roundup/instance "$PYTHON" "$NOTIFY" "$CONFIG" "$REPOS" "$REV"

: Nothing

Roundup Issue Tracker: http://roundup-tracker.org/