diff options
-rw-r--r-- | gitolite/dotfiles/.gitolite.rc | 4 | ||||
-rwxr-xr-x | gitolite/dotfiles/local/triggers/create | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gitolite/dotfiles/.gitolite.rc b/gitolite/dotfiles/.gitolite.rc index bd661de..00227c2 100644 --- a/gitolite/dotfiles/.gitolite.rc +++ b/gitolite/dotfiles/.gitolite.rc @@ -89,6 +89,10 @@ 'push', ], + POST_CREATE => [ + 'create', + ], + ENABLE => [ # COMMANDS diff --git a/gitolite/dotfiles/local/triggers/create b/gitolite/dotfiles/local/triggers/create new file mode 100755 index 0000000..da8f560 --- /dev/null +++ b/gitolite/dotfiles/local/triggers/create @@ -0,0 +1,6 @@ +#!/bin/sh + +[ "$4" = "W" ] || exit 0 + +cd "$GL_REPO_BASE/$2.git" +echo "" >description |