mirror of
https://github.com/git/git.git
synced 2026-03-14 10:53:25 +01:00
Merge branches 'mw/pathinfo' and 'lj/refs' into next
* mw/pathinfo: gitweb: warn if feature cannot be overridden. * lj/refs: pack-refs: call fflush before fsync.
This commit is contained in:
@@ -124,6 +124,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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user