X-Git-Url: https://git.ctpug.org.za/?p=gitolite-hooks.git;a=blobdiff_plain;f=irker;fp=irker;h=436e190c0486b89ee03acb1fcb262b8dd1b31123;hp=eb4bd1e5960673ada30646c4f6482f09709b5672;hb=ceceb3aa1d5209d2015a2acb55486ce70436e2a6;hpb=be0a5404034731b70a08addaa0f96b53e3d1b7d3 diff --git a/irker b/irker index eb4bd1e..436e190 100755 --- 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