Fix syntax errors
[gitolite-hooks.git] / irker
diff --git a/irker b/irker
index eb4bd1e5960673ada30646c4f6482f09709b5672..89c9603e121cc4becceefd83d70d8cb064276af9 100755 (executable)
--- a/irker
+++ b/irker
@@ -2,7 +2,7 @@
 
 IRKERPATH=/usr/bin/
 
-function help() {
+function help_irker() {
   echo "Required config settings:"
   echo "  git config irker.channels 'channel1 channel2 ..'"
   echo "  git config irker.project 'Project name'"
@@ -36,15 +36,3 @@ function notify_irker() {
            $(git rev-list --reverse ${old}..${new})
    fi
 }
-
-channels=$(git config --get irker.channels)
-
-while read line; do
-  set -- $line
-  if [ -n "$channels" ]; then
-      notify_irker $*
-  fi
-  RET=$?
-done
-
-exit $RET