summaryrefslogtreecommitdiff
path: root/gitolite-webhook/notify
blob: 600a70bf73c7f9809542487141cd7e7ac18b7d25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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