summaryrefslogtreecommitdiff
path: root/gitolite-webhook
diff options
context:
space:
mode:
Diffstat (limited to 'gitolite-webhook')
-rwxr-xr-xgitolite-webhook/notify22
1 files changed, 22 insertions, 0 deletions
diff --git a/gitolite-webhook/notify b/gitolite-webhook/notify
new file mode 100755
index 0000000..600a70b
--- /dev/null
+++ b/gitolite-webhook/notify
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+#
+# Example hook for Gitolite. To be called with post-receive.
+#
+
+read OLDREV NEWREV REFNAME
+
+export WEBHOOK_URL="https://irc.iamfabulous.de/webhook"
+export REPO_URL="https://git.iamfabulous.de/cgit.git/$GL_REPO"
+
+cd $GIT_DIR
+export COMMIT_MSG=$(git log -1 HEAD --pretty=format:%s)
+export REFNAME=$REFNAME
+export JOIN=build
+export DATE="$(date)"
+
+# Line break
+echo ""
+
+# Put gitolite-webhook in your $PATH or change location.
+gitolite-webhook