aboutsummaryrefslogtreecommitdiffstats
path: root/misc/post-receive
diff options
context:
space:
mode:
authorZaran <zaran.krleza@gmail.com>2011-09-20 15:47:03 +0200
committerZaran <zaran.krleza@gmail.com>2011-09-20 15:50:35 +0200
commit0e314103b828bfa52d04d7c063353eba76ae7e9f (patch)
tree46745baf964ce6a34b55d7b2051602c14f40b766 /misc/post-receive
parent77fc54837df9f0d8067b677016d9fc96ad16c63e (diff)
downloadalias-0e314103b828bfa52d04d7c063353eba76ae7e9f.tar.gz
Add post-receive script
Depends on irclib (included). The misc directory should be used for files related to project maintenance or for configurations files (e.g. ejabberd.conf)
Diffstat (limited to 'misc/post-receive')
-rwxr-xr-xmisc/post-receive9
1 files changed, 9 insertions, 0 deletions
diff --git a/misc/post-receive b/misc/post-receive
new file mode 100755
index 0000000..04853c1
--- /dev/null
+++ b/misc/post-receive
@@ -0,0 +1,9 @@
+#!/bin/sh
+# post-receive hook for notifications
+# arguments received
+# <oldrev> <newrev> <refname>
+
+# irc notification
+# change the path of the python script
+a=`git log --format=format:"%an | %s" $1..$2`
+python git-post-commit.py "irc.freenode.net" "AliasCommit" "#alias" "$a"