aboutsummaryrefslogtreecommitdiff
path: root/files/usr
diff options
context:
space:
mode:
Diffstat (limited to 'files/usr')
-rw-r--r--files/usr/local/libexec/gitolite-grouplist.git_server5
1 files changed, 5 insertions, 0 deletions
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);