summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gitolite/dotfiles/.gitolite.rc4
-rwxr-xr-xgitolite/dotfiles/local/triggers/create6
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