2009-10-02 19:53:52 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2009-10-03 09:47:02 +02:00
|
|
|
# checkout the master branch to $GL_ADMINDIR
|
2009-12-15 08:05:48 +01:00
|
|
|
# (the GL_ADMINDIR env var would have been set by gl-auth-command)
|
2010-04-12 17:20:26 +02:00
|
|
|
GIT_WORK_TREE=$GL_ADMINDIR git checkout -f master -- \
|
2010-04-12 20:16:29 +02:00
|
|
|
`git ls-tree --name-only master | perl -lne 'print unless /^(src|hooks)$/'`
|
2009-10-03 09:47:02 +02:00
|
|
|
|
2010-03-30 14:23:40 +02:00
|
|
|
od=$PWD
|
2009-10-03 09:47:02 +02:00
|
|
|
cd $GL_ADMINDIR
|
2009-12-15 08:05:48 +01:00
|
|
|
$GL_BINDIR/gl-compile-conf
|
2010-03-16 14:56:26 +01:00
|
|
|
|
2010-03-30 14:23:40 +02:00
|
|
|
cd $od
|
2010-03-17 16:06:51 +01:00
|
|
|
|
2010-04-13 14:56:34 +02:00
|
|
|
ADMIN_POST_UPDATE_CHAINS_TO=` cd;perl -e 'do ".gitolite.rc"; print $ADMIN_POST_UPDATE_CHAINS_TO'`
|
|
|
|
[ -n "$ADMIN_POST_UPDATE_CHAINS_TO" ] || ADMIN_POST_UPDATE_CHAINS_TO=hooks/post-update.secondary
|
|
|
|
|
|
|
|
if [ -f $ADMIN_POST_UPDATE_CHAINS_TO ] || [ -L $ADMIN_POST_UPDATE_CHAINS_TO ]
|
2010-03-16 14:56:26 +01:00
|
|
|
then
|
2010-04-13 14:56:34 +02:00
|
|
|
exec $ADMIN_POST_UPDATE_CHAINS_TO "$@"
|
2010-03-16 14:56:26 +01:00
|
|
|
fi
|