gitweb: Jump do DONE_REQUEST not DONE_GITWEB on error
commitf64627358662700a0006cf3fecc59f507f186f25
authorJakub Narebski <jnareb@gmail.com>
Tue, 8 May 2012 19:35:05 +0000 (8 21:35 +0200)
committerJakub Narebski <jnareb@gmail.com>
Tue, 8 May 2012 19:35:05 +0000 (8 21:35 +0200)
treee500624ffa05fbbcbcd5591575ac8c8fcbfab4f2
parent541b087d66b01661b79774e1ede515c2de7c2bee
gitweb: Jump do DONE_REQUEST not DONE_GITWEB on error

On error (die_error()), instead of ending gitweb process by non-local
jump to DONE_GITWEB label at the end of requests loop in run()
subroutine, just end current request by jumping to DONE_REQUESt at the
end of run_request() subroutine.

This would allow to create new deployment mechanisms (for example
PSGI) based on run_request() and not on run().

Note that DONE_REQUEST label is removed because it is no longer used,
and it wouldn't work correctly for PSGI anyway.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
gitweb/gitweb.perl