From 446a611327b8c82466b2bcd0ca05b4704f622199 Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Thu, 22 Mar 2012 12:49:27 +0530 Subject: [PATCH] enhance the projects.list updater to look at 'gitweb.*' config settings also (not just 'R = gitweb') Can you tell I really, really, don't want anything to do with gitweb and daemon to be part of gitolite *core*? :-) --- src/commands/post-compile/update-gitweb-access-list | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/commands/post-compile/update-gitweb-access-list b/src/commands/post-compile/update-gitweb-access-list index 971100e..d7f5a95 100755 --- a/src/commands/post-compile/update-gitweb-access-list +++ b/src/commands/post-compile/update-gitweb-access-list @@ -7,5 +7,9 @@ plf=$(gitolite query-rc GITWEB_PROJECTS_LIST) [ -z "$plf" ] && plf=$HOME/projects.list -gitolite list-phy-repos | gitolite access % gitweb R any | grep -v DENIED | cut -f1 | sed -e 's/$/.git/' > $plf +( + gitolite list-phy-repos | gitolite access % gitweb R any | grep -v DENIED + gitolite list-phy-repos | gitolite git-config -r % gitweb\\. +) | + cut -f1 | sort -u | sed -e 's/$/.git/' > $plf