gitolite/hooks/gitolite-admin/post-update
Sitaram Chamarty b537a4acd4 dash it all!
Ubuntu now defaults to /bin/sh -> /bin/dash, while my brain seems to
default to bash.

I guess it's easier to fix my brain, and my code <sigh>
2010-03-18 09:13:41 +05:30

16 lines
350 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
cd -
if [ -f hooks/post-update.secondary ] || [ -L hooks/post-update.secondary ]
then
exec hooks/post-update.secondary "$@"
fi