gitweb: Check git base URLs before generating URL from it
commitd6b7e0b98f8d0f84e3b2614b33b52402fefb5735
authorJakub Narebski <jnareb@gmail.com>
Thu, 26 Oct 2006 10:26:44 +0000 (26 12:26 +0200)
committerJunio C Hamano <junkio@cox.net>
Fri, 27 Oct 2006 09:12:56 +0000 (27 02:12 -0700)
treeda505bedf4c467d3d077a909b593ce9cf9c3bd9f
parentf8a5da6d94baa0a90e7b383932911661bb551e1c
gitweb: Check git base URLs before generating URL from it

Check if each of git base URLs in @git_base_url_list is true before
appending "/$project" to it to generate project URL.

This fixes the error that for default configuration for gitweb in
Makefile, with GITWEB_BASE_URL empty (and "++GITWEB_BASE_URL++" being
"" in gitweb.cgi), we had URL of "/$project" in the summary view.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.perl