From 35ce515cf2500e32fad83e26c2de76138f688aa6 Mon Sep 17 00:00:00 2001 From: Cullum Smith Date: Sat, 16 Nov 2024 20:42:58 -0500 Subject: small fix for gitolite grouplist script --- files/usr/local/libexec/gitolite-grouplist.git_server | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'files/usr/local') diff --git a/files/usr/local/libexec/gitolite-grouplist.git_server b/files/usr/local/libexec/gitolite-grouplist.git_server index 3f90971..62b99a6 100644 --- a/files/usr/local/libexec/gitolite-grouplist.git_server +++ b/files/usr/local/libexec/gitolite-grouplist.git_server @@ -26,6 +26,11 @@ my $group_basedn = $config{GROUPS_BASE} // die("GROUPS_BASE not specified\n"); @ARGV == 1 or die "usage: $0 USERNAME\n"; my $username = $ARGV[0]; +if ($username eq 'gitweb') { + # Prevents 'no such user: gitweb' message during git push. + exit 0 +} + my $conn = Net::LDAP->new($uri, version => '3') or die "$0: $@"; my $sasl = Authen::SASL->new($mech); my $status = $conn->bind(sasl => $sasl); -- cgit v1.2.3