# 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'"
newrev=$(git rev-parse $2)
refname="$3"
+ echo "slack $1 $2 $3"
+ return
+
# --- Interpret
# 0000->1234 (create)
# 1234->2345 (update)
"$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