From 798762a0c31d27be74929805a4e728fd222e7a0c Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Thu, 27 May 2010 19:47:06 +0200 Subject: [PATCH] gitweb: default GL_USER to gitweb if not provided by CGI If CGI.pm does not have a user, this patch causes the gitweb authentication code to assume "gitweb". This allows one to specify ACLs specifically for gitweb, separately from the @all catch-all. To: Sitaram Chamarty Cc: Teemu Matilainen Signed-off-by: martin f. krafft --- contrib/gitweb/gitweb.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/gitweb/gitweb.conf b/contrib/gitweb/gitweb.conf index efe93a3..edf9af4 100644 --- a/contrib/gitweb/gitweb.conf +++ b/contrib/gitweb/gitweb.conf @@ -8,7 +8,7 @@ my $gl_home = "/home/git"; # environment variables needed by gitolite.pm $ENV{GL_RC} = "$gl_home/.gitolite.rc"; -$ENV{GL_USER} = $cgi->remote_user; +$ENV{GL_USER} = $cgi->remote_user || "gitweb"; # variables from the RC file our ($REPO_BASE, $GL_ADMINDIR);