author | Jakub Narebski <jnareb@gmail.com> | |
Sun, 13 Jun 2010 10:09:32 +0000 (12:09 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 14 Jun 2010 17:55:38 +0000 (10:55 -0700) | ||
commit | 5ed2ec1041b6aeec81b0f0a9775355a9b2c755a6 | |
tree | 6985959fcf25563c3dec78b636d868ed3cac3e5f | tree | snapshot |
parent | a5080d8e10915daa57b5b42c887483d202b45c55 | commit | diff |
gitweb: Return or exit after done serving request
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 <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/gitweb.perl | diff | blob | history |