From ba8094d6f59000d142b117277fec81d91806ea10 Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Sat, 12 Jun 2010 09:16:32 +0530 Subject: [PATCH] report_basic forgot how to display wildcards during big-config change in addition, due to "+" becoming a valid character in a normal reponame, (think gtk+, etc), the pattern repo dev/CREATOR/.+ doesn't look like a wildcard repo anymore, so we add an extra check that if CREATOR is mentioned, it *is* a wildcard. This has been added *only* to the report_basic function; it doesn't really matter anywhere else. --- src/gitolite.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gitolite.pm b/src/gitolite.pm index bb4fb5f..776c800 100644 --- a/src/gitolite.pm +++ b/src/gitolite.pm @@ -324,9 +324,10 @@ sub report_basic &report_version($GL_ADMINDIR, $user); print "\rthe gitolite config gives you the following access:\r\n"; for my $r (sort keys %repos) { - if ($r =~ $REPONAME_PATT) { + if ($r =~ $REPONAME_PATT and $r !~ /\bCREAT[EO]R\b/) { &parse_acl($GL_CONF_COMPILED, $r, "NOBODY", "NOBODY", "NOBODY"); } else { + $r =~ s/\bCREAT[EO]R\b/$user/g; &parse_acl($GL_CONF_COMPILED, $r, $ENV{GL_USER}, "NOBODY", "NOBODY"); } # @all repos; meaning of read/write flags: