From: Jakub Narebski Date: Sun, 7 Dec 2008 09:36:36 +0000 (+0100) Subject: gitweb: Make project specific override for 'grep' feature work X-Git-Url: https://git.ladys.computer/Gitweb/commitdiff_plain/4859a5e5346bcea6a04890c8fb00463ac2ba3196959957bde6c28211efe2d19a gitweb: Make project specific override for 'grep' feature work The 'grep' feature was marked in the comments as having project specific config, but it lacked 'sub' key required for it to work. Kind-of-Noticed-by: Matt Kraai Signed-off-by: Jakub Narebski Signed-off-by: Junio C Hamano --- diff --git a/gitweb.perl b/gitweb.perl index e7bb0dc..8d4d14d 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -242,6 +242,7 @@ our %feature = ( # $feature{'grep'}{'override'} = 1; # and in project config gitweb.grep = 0|1; 'grep' => { + 'sub' => \&feature_grep, 'override' => 0, 'default' => [1]},