author | Jakub Narebski <jnareb@gmail.com> | |
Sat, 7 Jan 2012 10:47:38 +0000 (11:47 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 9 Jan 2012 21:30:59 +0000 (13:30 -0800) | ||
commit | 18ab83e8568878edc3f6680ebdf439ccaa5bf5db | |
tree | 9d071ef5137760a9abea2f986071af5f3779e33e | tree | snapshot |
parent | 5f4d133fca7eb3cb750f056a6fd0281ba06cd12f | commit | diff |
gitweb: Fix actionless dispatch for non-existent objects
When gitweb URL does not provide action explicitly, e.g.
http://git.example.org/repo.git/branch
dispatch() tries to guess action (view to be used) based on remaining
parameters. Among others it is based on the type of requested object,
which gave problems when asking for non-existent branch or file (for
example misspelt name).
Now undefined $action from dispatch() should not result in problems.
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
When gitweb URL does not provide action explicitly, e.g.
http://git.example.org/repo.git/branch
dispatch() tries to guess action (view to be used) based on remaining
parameters. Among others it is based on the type of requested object,
which gave problems when asking for non-existent branch or file (for
example misspelt name).
Now undefined $action from dispatch() should not result in problems.
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/gitweb.perl | diff | blob | history | |
t/t9500-gitweb-standalone-no-errors.sh | diff | blob | history |