aboutsummaryrefslogtreecommitdiffstats
path: root/misc/post-receive
diff options
context:
space:
mode:
authorZaran <zaran.krleza@gmail.com>2011-09-21 03:09:31 +0200
committerZaran <zaran.krleza@gmail.com>2011-09-21 03:09:31 +0200
commit73b2c72961544b42229dd334fc75a20d52acff9b (patch)
tree8765f25b3e00ff1097017cc0db007185b54fe80f /misc/post-receive
parentc607a0177e6950e098d0f655dc4b8d6008d50710 (diff)
downloadalias-73b2c72961544b42229dd334fc75a20d52acff9b.tar.gz
Add trac update hook.
Called from the post-receive hook
Diffstat (limited to 'misc/post-receive')
-rwxr-xr-xmisc/post-receive3
1 files changed, 2 insertions, 1 deletions
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 @@
# <oldrev> <newrev> <refname>
# 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"