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 -- \
|
|
|
|
`git ls-tree master | cut -f2 | 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-03-18 04:41:48 +01:00
|
|
|
if [ -f hooks/post-update.secondary ] || [ -L hooks/post-update.secondary ]
|
2010-03-16 14:56:26 +01:00
|
|
|
then
|
|
|
|
exec hooks/post-update.secondary "$@"
|
|
|
|
fi
|