From 64e4b6fd997c9feab60be322a22028f157f4bc00 Mon Sep 17 00:00:00 2001 From: Lisa Marie Maginnis Date: Fri, 20 Feb 2015 12:22:36 -0500 Subject: [PATCH] added gluestick hook for updating techteam wiki --- gluestick.git/post-update | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/gluestick.git/post-update b/gluestick.git/post-update index d73acc5..caad0b9 100755 --- a/gluestick.git/post-update +++ b/gluestick.git/post-update @@ -15,19 +15,8 @@ case $1 in ;; esac -echo "Updating local checkout..." -if [ ! -d $CHECKOUT_DIR ]; then - git clone $REPO_DIR/$self $CHECKOUT_DIR - git checkout stable -else - cd $CHECKOUT_DIR - git pull origin stable -fi - -echo "Syncing hooks..." -for working_copy in $(find $CHECKOUT_DIR -type d -maxdepth 1 -name '*git'); do - rsync -avrSPX --delete $working_copy/hooks/* $REPO_DIR/{$working_copy//*\//}/hooks/ -done +echo "Syncing wiki..." +wget git log -1 --format=format:%ae HEAD | grep -e '@web$' -e 'ikiwiki@peg' || curl -s --insecure 'https://techteam:aoNe6oor@pinger.fsf.org:8000/ikiwiki.cgi?do=ping' exec git update-server-info -- 2.25.1