diff options
author | Jakub Narebski <jnareb@gmail.com> | 2010-09-26 13:34:56 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-09-30 11:47:19 -0700 |
commit | 8ff76f4c3b4e72ac8259465bdf6e33f4da19170d (patch) | |
tree | e0038117fca37bf8fd782153f16166bd22261230 /gitweb | |
parent | 9855b08d35edf8a8a441f24ff7b00e220a29f261 (diff) | |
download | git-8ff76f4c3b4e72ac8259465bdf6e33f4da19170d.tar.gz git-8ff76f4c3b4e72ac8259465bdf6e33f4da19170d.tar.xz |
gitweb: Move call to evaluate_git_version after evaluate_gitweb_config
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 <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'gitweb')
-rwxr-xr-x | gitweb/gitweb.perl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index a85e2f631..d521b4cf8 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -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; |