mirror of
https://github.com/jorisvink/kore
synced 2025-03-09 04:29:02 -04:00
Add the old update stuff into the hook.
This commit is contained in:
parent
7632705c64
commit
d677632732
@ -22,3 +22,32 @@ while read oldrev newrev ref; do
|
||||
$URL
|
||||
fi
|
||||
done
|
||||
|
||||
ROOT=/var/chroot/kore-site
|
||||
TARGET=$ROOT/stagit
|
||||
STATIC=$HOME/src/stagit_static
|
||||
export TMPDIR=$ROOT/.tmp
|
||||
|
||||
STAGING=`mktemp -d`
|
||||
|
||||
function update_stagit {
|
||||
mkdir -p $STAGING/$1
|
||||
pushd $STAGING/$1
|
||||
stagit-index > 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
|
||||
chmod -R o+rx $STAGING
|
||||
|
||||
rm -rf $ROOT/.old
|
||||
mv $TARGET $ROOT/.old
|
||||
mv $STAGING $TARGET
|
||||
rm -rf $ROOT/.old
|
||||
|
Loading…
x
Reference in New Issue
Block a user