]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: Move call to evaluate_git_version after evaluate_gitweb_config
authorJakub Narebski <redacted>
Sun, 26 Sep 2010 11:34:56 +0000 (13:34 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:51:30 +0000 (00:51 -0400)
Now evaluate_git_version() is inside run_request() to be called for each
request, instead of once per starting gitweb; this currently matters only
when using FastCGI interface (gitweb.fcgi).

This change was done because evaluate_git_version() uses $GIT variable,
which can be set / modified by gitweb config file, but the variable is
modified this way by gitweb config file used in gitweb tests.  Without
this change there is spurious extra output from t9500 test when tests are
run with '--debug' option.

Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl

index 4df6db5974d61faa9450d90b5e652ee7b99348fc968a5d25ca90ce9cc9574b69..b8b5aa4a4f47d66629c208e31058cdb3e4f376bd475e3b8d2b1a005275ef2042 100755 (executable)
@@ -1069,6 +1069,7 @@ sub run_request {
 
        evaluate_uri();
        evaluate_gitweb_config();
+       evaluate_git_version();
        check_loadavg();
 
        # $projectroot and $projects_list might be set in gitweb config file
@@ -1121,7 +1122,6 @@ sub evaluate_argv {
 
 sub run {
        evaluate_argv();
-       evaluate_git_version();
 
        $pre_listen_hook->()
                if $pre_listen_hook;
This page took 0.333465 seconds and 4 git commands to generate.