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>
Martin Waitz committed
Oct 3, 2006 at 20:07 UTC
a9455919064ab316b7852d0006c1bd771b727f2e
1 file changed
+4
gitweb/gitweb.perl
+4
@@ -116,6 +116,10 @@ sub gitweb_check_feature {
116
$feature{$name}{'override'},
117
@{$feature{$name}{'default'}});
118
if (!$override) { return @defaults; }
119
+ if (!defined $sub) {
120
+ warn "feature $name is not overrideable";
121
+ return @defaults;
122
+ }
123
return $sub->(@defaults);
124
}
125