From 03babe77727b4290d4e3aa6199c692e0ce3ca6fb Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Mon, 21 Dec 2009 17:07:31 +0530 Subject: [PATCH] parse_acl (gitolite.pm): minor convenience added --- src/gitolite.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gitolite.pm b/src/gitolite.pm index 1a3655f..4cfa8e1 100644 --- a/src/gitolite.pm +++ b/src/gitolite.pm @@ -175,7 +175,8 @@ sub parse_acl die "parse $GL_CONF_COMPILED failed: " . ($! or $@) unless do $GL_CONF_COMPILED; - # access reporting doesn't send $repo, and doesn't need to + # basic access reporting doesn't send $repo, and doesn't need to; you just + # want the config dumped as is, really return unless $repo; return $ENV{GL_REPOPATT} = "" if $repos{$repo}; @@ -222,6 +223,10 @@ sub expand_wild { my($GL_CONF_COMPILED, $repo_base_abs, $repo, $user) = @_; + # this is for convenience; he can copy-paste the output of the basic + # access report instead of having to manually change CREATER to his name + $repo =~ s/\bCREAT[EO]R\b/$user/g; + # display matching repos (from *all* the repos in the system) that $user # has at least "R" access to