From e1d9aee98be8bffcf56d36d2d981e305c3e29a3c Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Fri, 25 May 2012 12:38:11 +0530 Subject: [PATCH] delete the 'description' file for new repos --- src/triggers/post-compile/update-gitweb-access-list | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/triggers/post-compile/update-gitweb-access-list b/src/triggers/post-compile/update-gitweb-access-list index b7faee2..d986fb3 100755 --- a/src/triggers/post-compile/update-gitweb-access-list +++ b/src/triggers/post-compile/update-gitweb-access-list @@ -4,6 +4,11 @@ # whatever you want and contribute it back, as long as it is upward # compatible. +# ---------------------------------------------------------------------- +# delete the 'description' file that 'git init' created if this is run from +# the post-create trigger +[ "$1" = "POST_CREATE" ] && rm -f $GL_REPO_BASE/$2.git/description 2>/dev/null + # ---------------------------------------------------------------------- # skip if arg-1 is POST_CREATE and no arg-3 (user name) exists; this means # it's been triggered by a *normal* (not "wild") repo creation, which in turn