@matheusbsbs / matheus-bagliano / commits / bcc6a83303
Fork 0

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 <kraai@ftbfs.org> Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jakub Narebski committed Dec 7, 2008 at 10:36 UTC bcc6a833032e0830195c1de1b834006a1d0156fe
1 file changed +1
gitweb/gitweb.perl
+1
@@ -232,6 +232,7 @@ our %feature = (
232 # $feature{'grep'}{'override'} = 1;
233 # and in project config gitweb.grep = 0|1;
234 'grep' => {
235 + 'sub' => \&feature_grep,
236 'override' => 0,
237 'default' => [1]},
238