aboutsummaryrefslogtreecommitdiffstats
path: root/misc/post-receive
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2012-01-16 23:24:40 -0500
committerGuillaume Horel <guillaume.horel@gmail.com>2012-01-16 23:24:40 -0500
commit2b679d318b65d090fb75668d26d6e85ea250b771 (patch)
tree5053a7f40c105f1883e31bc93994cf40a52bcbc5 /misc/post-receive
parent18ac8babb1d40b291468058d9125a1598434f543 (diff)
parent73b2c72961544b42229dd334fc75a20d52acff9b (diff)
downloadalias-2b679d318b65d090fb75668d26d6e85ea250b771.tar.gz
Merge branch 'master' of alias.fr.nf:alias
Diffstat (limited to 'misc/post-receive')
-rwxr-xr-xmisc/post-receive16
1 files changed, 16 insertions, 0 deletions
diff --git a/misc/post-receive b/misc/post-receive
new file mode 100755
index 0000000..1041c89
--- /dev/null
+++ b/misc/post-receive
@@ -0,0 +1,16 @@
+#!/bin/sh
+# post-receive hook for notifications
+# arguments received
+# <oldrev> <newrev> <refname>
+
+# irc notification
+# 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"
+