Restructure
[gitolite-hooks.git] / irker
diff --git a/irker b/irker
index eb4bd1e5960673ada30646c4f6482f09709b5672..436e190c0486b89ee03acb1fcb262b8dd1b31123 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'"
@@ -16,6 +16,9 @@ function notify_irker() {
    new=$2
    refname=$3
 
+   echo "irker $1 $2 $3"
+   return 
+
    if [ "x$old" = "x0000000000000000000000000000000000000000" ]; then
       # We're pushing into an empty repo, so we need a different command
       # to get the rev list
@@ -36,15 +39,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