summaryrefslogtreecommitdiffstats
path: root/gitolite/dotfiles/local/triggers
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2024-03-11 23:46:04 -0400
committerMalfurious <m@lfurio.us>2024-03-11 23:46:04 -0400
commit505e52aa3dd44b94a878c7a7e906263535e1df56 (patch)
tree8ea68ef1bae6f06c86f7bf619e23b68d3e1a2864 /gitolite/dotfiles/local/triggers
parente520832bc0aadb964b703bf7f087feab80ca78ab (diff)
downloadsrcnode-505e52aa3dd44b94a878c7a7e906263535e1df56.tar.gz
srcnode-505e52aa3dd44b94a878c7a7e906263535e1df56.zip
gitolite: Force blank description for newly created repositories
A gitolite POST_CREATE trigger is added to initialize the description file in new repos. This prevents the "Unnamed repository; edit this file ..." string from being used by default. This affects new repositories, existing projects will remain as is. Signed-off-by: Malfurious <m@lfurio.us>
Diffstat (limited to 'gitolite/dotfiles/local/triggers')
-rwxr-xr-xgitolite/dotfiles/local/triggers/create6
1 files changed, 6 insertions, 0 deletions
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