aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCullum Smith <cullum@sacredheartsc.com>2024-11-16 20:42:58 -0500
committerCullum Smith <cullum@sacredheartsc.com>2024-11-16 20:42:58 -0500
commit35ce515cf2500e32fad83e26c2de76138f688aa6 (patch)
tree9611ef41c9d04e4e2c07ccc0e08a98f7ea5c5a45
parentdee9739436ecdc20baac2ca234da5b2bcbfd4abf (diff)
downloadinfrastructure-35ce515cf2500e32fad83e26c2de76138f688aa6.tar.gz
small fix for gitolite grouplist script
-rw-r--r--files/usr/local/libexec/gitolite-grouplist.git_server5
m---------site0
2 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);
diff --git a/site b/site
-Subproject fd6afaa219fed6717ca81071fd9a82db2f5f639
+Subproject c0603b03727c424aa020e1a6bdd219c95396172