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
This commit is contained in:
parent
5f3344025c
commit
45a696c419
|
@ -891,6 +891,7 @@ sub setup_authkeys
|
||||||
my @no_pubkey =
|
my @no_pubkey =
|
||||||
grep { $_ !~ /^(gitweb|daemon|\@.*|~\$creator)$/ }
|
grep { $_ !~ /^(gitweb|daemon|\@.*|~\$creator)$/ }
|
||||||
grep { $user_list_p->{$_} ne 'has pubkey' }
|
grep { $user_list_p->{$_} ne 'has pubkey' }
|
||||||
|
grep { $GL_WILDREPOS_PERM_CATS !~ /(^|\s)$_(\s|$)/ }
|
||||||
keys %{$user_list_p};
|
keys %{$user_list_p};
|
||||||
if (@no_pubkey > 10) {
|
if (@no_pubkey > 10) {
|
||||||
print STDERR "$WARN You have " . scalar(@no_pubkey) . " users WITHOUT pubkeys...!\n";
|
print STDERR "$WARN You have " . scalar(@no_pubkey) . " users WITHOUT pubkeys...!\n";
|
||||||
|
|
Loading…
Reference in a new issue