aboutsummaryrefslogtreecommitdiff
path: root/gitweb/gitweb.perl
diff options
context:
space:
mode:
authorMartin Waitz <tali@admingilde.org>2006-10-03 20:07:43 +0200
committerJunio C Hamano <junkio@cox.net>2006-10-04 23:02:31 -0700
commita9455919064ab316b7852d0006c1bd771b727f2e (patch)
tree7b1d2020bb4d25f479c26d440603447ce6ca175e /gitweb/gitweb.perl
parent9e756904d05a53f1f519492ea1addc3e3163c678 (diff)
downloadgit-a9455919064ab316b7852d0006c1bd771b727f2e.tar.gz
git-a9455919064ab316b7852d0006c1bd771b727f2e.tar.xz
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/gitweb.perl')
-rwxr-xr-xgitweb/gitweb.perl4
1 files changed, 4 insertions, 0 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 10e803a97..0ff6f7c1e 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);
}