]> Lady’s Gitweb - Gitweb/commit
gitweb: allow configurations that change with each request
authorJonathan Nieder <redacted>
Sat, 31 Jul 2010 03:01:59 +0000 (22:01 -0500)
committerLady <redacted>
Mon, 6 Apr 2026 04:51:30 +0000 (00:51 -0400)
commit812f2576c28b74492d5cf61b37865aa35af0461c0fefecc0718d256aa2463722
tree1849ff6eb80876c17a2eab0d15609f1dc9f896ae00b76deec39459471e038bc8
parent679c9f3e0d7ddc5e26bfc39197400fcf24306a640f803edd77cc9e315ba9d87b
gitweb: allow configurations that change with each request

gitolite's contrib/gitweb/gitweb.conf includes:

$ENV{GL_USER} = $cgi->remote_user || "gitweb";

which is useful for setups where a user has to be authenticated
to access certain repos.  Perhaps other typical configurations
change per session in other ways, too.

v1.7.2-rc2~6 (gitweb: Move evaluate_gitweb_config out of run_request,
2010-07-05) broke such configurations for a speedup, by loading
the configuration once per FastCGI process.

Probably in the end there should be a way to specify in the
configuration whether a particular installation wants the speedup or
the flexibility.  But for now it is easier to just undo the relevant
change.

This partially reverts commit 869d58813b24c74e84c9388041eafcef40cb51e4.

Reported-by: Julio Lajara <redacted>
Analysis-by: Jakub Narebski <redacted>
Signed-off-by: Jonathan Nieder <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.281209 seconds and 4 git commands to generate.