]> Lady’s Gitweb - Gitweb/commit
gitweb: Fix actionless dispatch for non-existent objects
authorJakub Narebski <redacted>
Sat, 7 Jan 2012 10:47:38 +0000 (11:47 +0100)
committerLady <redacted>
Mon, 6 Apr 2026 04:51:31 +0000 (00:51 -0400)
commit7e49981d34284e6250b9f617ef1be11ef601d5a3aa0570dfb3962af6886ea144
treec9431632c01b94d6d0e9cdf36713eb3879753abcd36cb4ab0ec819e24389ff21
parent040854b07fdfb25490cb6923c136a5c6612780766a9fd56a9161690aff047a30
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.238503 seconds and 4 git commands to generate.