mirror of https://git.kore.io/kore.git
Shuffle stuff around in the hook.
This commit is contained in:
parent
d677632732
commit
5d69879d87
|
@ -23,6 +23,8 @@ while read oldrev newrev ref; do
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
git update-server-info
|
||||||
|
|
||||||
ROOT=/var/chroot/kore-site
|
ROOT=/var/chroot/kore-site
|
||||||
TARGET=$ROOT/stagit
|
TARGET=$ROOT/stagit
|
||||||
STATIC=$HOME/src/stagit_static
|
STATIC=$HOME/src/stagit_static
|
||||||
|
@ -33,15 +35,13 @@ STAGING=`mktemp -d`
|
||||||
function update_stagit {
|
function update_stagit {
|
||||||
mkdir -p $STAGING/$1
|
mkdir -p $STAGING/$1
|
||||||
pushd $STAGING/$1
|
pushd $STAGING/$1
|
||||||
stagit-index > index.html
|
stagit-index $2 > index.html
|
||||||
cp -R $2 ${STAGING}/${1}.git
|
cp -R $2 ${STAGING}/${1}.git
|
||||||
chmod -R +rx ${STAGING}/${1}.git
|
chmod -R +rx ${STAGING}/${1}.git
|
||||||
popd
|
popd
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
git update-server-info
|
|
||||||
|
|
||||||
update_stagit kore /home/git/kore.git
|
update_stagit kore /home/git/kore.git
|
||||||
|
|
||||||
cp -R $STATIC/* $STAGING
|
cp -R $STATIC/* $STAGING
|
||||||
|
|
Loading…
Reference in New Issue