From 45a696c4198636663ea391545baa4e82604e34fc Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Fri, 24 Dec 2010 11:06:05 +0530 Subject: [PATCH] fine tune "no pubkeys" warning perm categories (like READERS and WRITERS, or whatever you put in your $GL_WILDREPOS_PERM_CATS) are *supposed* to "have no pubkeys"; don't warn about them --- src/gitolite.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gitolite.pm b/src/gitolite.pm index 989369a..f4e454a 100644 --- a/src/gitolite.pm +++ b/src/gitolite.pm @@ -891,7 +891,8 @@ sub setup_authkeys my @no_pubkey = grep { $_ !~ /^(gitweb|daemon|\@.*|~\$creator)$/ } grep { $user_list_p->{$_} ne 'has pubkey' } - keys %{$user_list_p}; + grep { $GL_WILDREPOS_PERM_CATS !~ /(^|\s)$_(\s|$)/ } + keys %{$user_list_p}; if (@no_pubkey > 10) { print STDERR "$WARN You have " . scalar(@no_pubkey) . " users WITHOUT pubkeys...!\n"; } elsif (@no_pubkey) {