diff options
author | 2010-06-02 10:48:28 +0530 | |
---|---|---|
committer | 2010-06-02 12:29:47 +0530 | |
commit | 080ec22ae9090fe89a4eacf3fe732f3282eb87b8 (patch) | |
tree | 47d5810487e53850df597e374099b154ec9b787c | |
parent | now you can disallow creation of new refs if you like (diff) | |
download | gitolite-gentoo-1.5.1.tar.gz gitolite-gentoo-1.5.1.tar.bz2 gitolite-gentoo-1.5.1.zip |
compile: kill spurious "user ... not in config" warningsv1.5.1
this happens when users are given rights to a repo via a groupname, and
GL_BIG_CONFIG is in effect
-rwxr-xr-x | src/gl-compile-conf | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gl-compile-conf b/src/gl-compile-conf index f9b5786..334259e 100755 --- a/src/gl-compile-conf +++ b/src/gl-compile-conf @@ -267,7 +267,15 @@ sub parse_conf_file } for my $user (@users) { - $user_list{$user}++; # only to catch lint, see later + # lint check, to catch pubkey/username typos + if ($user =~ /^@/ and $user ne '@all') { + # this is a usergroup, not a normal user; happens with GL_BIG_CONFIG + if (exists $groups{$user}) { + $user_list{$_}++ for keys %{ $groups{$user} }; + } + } else { + $user_list{$user}++; + } # for 1st level check (see faq/tips doc) $repos{$repo}{C}{$user} = 1, next if $perms eq 'C'; |