From 73b2c72961544b42229dd334fc75a20d52acff9b Mon Sep 17 00:00:00 2001 From: Zaran Date: Wed, 21 Sep 2011 03:09:31 +0200 Subject: Add trac update hook. Called from the post-receive hook --- misc/post-receive | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'misc/post-receive') diff --git a/misc/post-receive b/misc/post-receive index b44916a..1041c89 100755 --- a/misc/post-receive +++ b/misc/post-receive @@ -4,11 +4,12 @@ # # irc notification -# change the path of the python script +# change the path of the python scripts { while read oldrev newrev refname do a=`git log --format=format:"%an | %s" $oldrev..$newrev` + printf "$oldrev $newrev $refname\n" | python trac-update.py printf "$a\n" done } | python git-post-commit.py "irc.freenode.net" "AliasCommit" "#alias" -- cgit v1.2.3-70-g09d2