added support for a post-repo-create hook (gl-post-init)

...some people want to run a special function after a repo is created
This commit is contained in:
Sitaram Chamarty 2010-09-24 16:19:33 +05:30
parent c18514e213
commit 67a72a3f5b
3 changed files with 91 additions and 68 deletions

View file

@ -27,3 +27,6 @@ if [ -n "$GL_WILDREPOS_DEFPERMS" ]; then
echo "$GL_WILDREPOS_DEFPERMS" > gl-perms
fi
# run gitolite's post-init hook if you can (hook code expects GL_REPO to be set)
export GL_REPO; GL_REPO="$to"
[ -x hooks/gl-post-init ] && hooks/gl-post-init