]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: Return or exit after done serving request
authorJakub Narebski <redacted>
Sun, 13 Jun 2010 10:09:32 +0000 (12:09 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:51:28 +0000 (00:51 -0400)
Check if there is a caller in top frame of gitweb, and either 'return'
if gitweb code is wrapped in subroutine, or 'exit' if it is not.

This should avoid

  gitweb.cgi: Subroutine git_SOMETHING redefined at gitweb.cgi line NNN

warnings in error_log when running gitweb with mod_perl (using
ModPerl::Registry handler)

Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>

No differences found
This page took 0.134444 seconds and 4 git commands to generate.