author | Jakub Narebski <jnareb@gmail.com> | |
Wed, 22 Jun 2011 15:28:52 +0000 (17:28 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 22 Jun 2011 18:44:09 +0000 (11:44 -0700) | ||
commit | e0ca364551fcde3b3d825f93f4a4d44d7ab9eb35 | |
tree | b98c8ce1beb765f07a006705a43eae942ca1c5f0 | tree | snapshot |
parent | a598ded1e2e9cc9f4ce93d091808b475839e6867 | commit | diff |
gitweb: Check permissions first in git_search
Check first if relevant features: 'search', 'pickaxe', 'grep', as
appropriate, are enabled before doing anything else in git_search.
This should make git_search code more clear.
While at it, expand a bit error message (e.g. 'Pickaxe' ->
'Pickaxe search').
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Check first if relevant features: 'search', 'pickaxe', 'grep', as
appropriate, are enabled before doing anything else in git_search.
This should make git_search code more clear.
While at it, expand a bit error message (e.g. 'Pickaxe' ->
'Pickaxe search').
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/gitweb.perl | diff | blob | history |