gitweb: Move call to evaluate_git_version after evaluate_gitweb_config
PATCH 1/1 gitweb: Move call to evaluate_git_version after evaluate_gitweb_config
This means that call to evaluate_git_version() is now inside run_request(), which means that is called for each request instead of once per starting gitweb; this matter currently only when using FastCGI interface (gitweb.fcgi).
This change was done becayse evaluate_git_version() uses $GIT variable, which can be set / modified by gitweb config file... and it 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 <[email protected]>
---
gitweb/gitweb.perl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
gitweb/gitweb.perl +1 -1
@@ -1061,6 +1061,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
@@ -1113,7 +1114,6 @@ sub evaluate_argv { sub run { evaluate_argv(); - evaluate_git_version(); $pre_listen_hook->() if $pre_listen_hook;