# Based on post-receive.irc by Mikael Fridh <frimik@gmail.com> https://gist.github.com/1821358
#
-function help() {
+function help_slack() {
echo "Required config settings:"
echo " git config hooks.slack.webhook-url 'https://hooks.slack.com/services/...'"
echo " git config hooks.slack.channel 'general'"
"$webhook_url" \
>/dev/null
}
-
-webhook_url=$(git config --get hooks.slack.webhook-url)
-
-while read line; do
- set -- $line
- if [ -n "$webhook_url" ]; then
- notify_slack $*
- fi
-
- RET=$?
-done
-
-exit $RET