From: Martin Waitz Date: Tue, 3 Oct 2006 18:07:43 +0000 (+0200) Subject: gitweb: warn if feature cannot be overridden. X-Git-Url: https://git.ladys.computer/Gitweb/commitdiff_plain/53714bdf484694160eb2f3ec3d80a57d77706718094622d8f666bca7a9db4710 gitweb: warn if feature cannot be overridden. If the administrator configures pathinfo to be overrideable by the local repository a warning is shown. Signed-off-by: Martin Waitz Signed-off-by: Junio C Hamano --- diff --git a/gitweb.perl b/gitweb.perl index 45ae6b2..de893cc 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -124,6 +124,10 @@ sub gitweb_check_feature { $feature{$name}{'override'}, @{$feature{$name}{'default'}}); if (!$override) { return @defaults; } + if (!defined $sub) { + warn "feature $name is not overrideable"; + return @defaults; + } return $sub->(@defaults); }