gitolite/hooks/gitolite-admin/post-update
Sitaram Chamarty 05431233a2 post-update hook now chains to post-update.secondary
undocumented but analogous to the documented update hook chaining
2010-03-16 19:27:29 +05:30

14 lines
348 B
Bash
Executable file

#!/bin/sh
# checkout the master branch to $GL_ADMINDIR
# (the GL_ADMINDIR env var would have been set by gl-auth-command)
GIT_WORK_TREE=$GL_ADMINDIR git checkout -f master
cd $GL_ADMINDIR
$GL_BINDIR/gl-compile-conf
if [[ -f hooks/post-update.secondary ]] || [[ -L hooks/post-update.secondary ]]
then
exec hooks/post-update.secondary "$@"
fi