Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/gitweb
diff options
context:
space:
mode:
authorMartin Waitz <tali@admingilde.org>2006-10-03 22:07:43 +0400
committerJunio C Hamano <junkio@cox.net>2006-10-05 10:02:31 +0400
commita9455919064ab316b7852d0006c1bd771b727f2e (patch)
tree7b1d2020bb4d25f479c26d440603447ce6ca175e /gitweb
parent9e756904d05a53f1f519492ea1addc3e3163c678 (diff)
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-xgitweb/gitweb.perl4
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);
}