From 5d69879d87e5869740713d43e81a961d14e164a1 Mon Sep 17 00:00:00 2001 From: Joris Vink Date: Thu, 5 Jan 2023 09:25:06 +0100 Subject: [PATCH] Shuffle stuff around in the hook. --- misc/hooks/post-receive | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/misc/hooks/post-receive b/misc/hooks/post-receive index 9318db5..cc4ffaa 100644 --- a/misc/hooks/post-receive +++ b/misc/hooks/post-receive @@ -23,6 +23,8 @@ while read oldrev newrev ref; do fi done +git update-server-info + ROOT=/var/chroot/kore-site TARGET=$ROOT/stagit STATIC=$HOME/src/stagit_static @@ -33,15 +35,13 @@ STAGING=`mktemp -d` function update_stagit { mkdir -p $STAGING/$1 pushd $STAGING/$1 - stagit-index > index.html + stagit-index $2 > index.html cp -R $2 ${STAGING}/${1}.git chmod -R +rx ${STAGING}/${1}.git popd } -git update-server-info - update_stagit kore /home/git/kore.git cp -R $STATIC/* $STAGING