mirror of
https://github.com/git/git.git
synced 2025-04-18 00:55:56 +00:00
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>
This commit is contained in:
parent
9e756904d0
commit
a945591906
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user