diff options
author | Martin Waitz <tali@admingilde.org> | 2006-10-03 20:07:43 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-10-04 23:02:31 -0700 |
commit | a9455919064ab316b7852d0006c1bd771b727f2e (patch) | |
tree | 7b1d2020bb4d25f479c26d440603447ce6ca175e /gitweb | |
parent | 9e756904d05a53f1f519492ea1addc3e3163c678 (diff) | |
download | git-a9455919064ab316b7852d0006c1bd771b727f2e.tar.gz |
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 <tali@admingilde.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'gitweb')
-rwxr-xr-x | gitweb/gitweb.perl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 10e803a97f..0ff6f7c1e4 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -116,6 +116,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); } |