diff 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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/scripts/notify-roundup/git/post-commit	Mon Jul 13 17:53:58 2009 +0000
@@ -0,0 +1,15 @@
+#!/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/