remove debugging echos
[gitolite-hooks.git] / post-receive
1 #!/bin/bash
2 HOOKDIR=$(dirname $0)
3
4 # Load functions
5 . $HOOKDIR/irker
6 . $HOOKDIR/slack
7
8
9 channels=$(git config --get irker.channels)
10
11 webhook_url=$(git config --get hooks.slack.webhook-url)
12
13 while read line; do
14     set -- $line
15     if [ -n "$channels" ]; then
16         notify_irker $*
17      fi
18      if [ -n "$webhook_url" ]; then
19         notify_slack $*
20      fi
21      RET=$?
22 done
23 exit $RET