gitweb: Make config_to_multi return [] instead of [undef]
commitbc8b95ae4a4b21753e84bbfd28cbcbf1b3f6e0a8
authorPetr Baudis <pasky@suse.cz>
Sat, 8 Dec 2007 11:30:59 +0000 (8 12:30 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 16 Dec 2007 19:56:27 +0000 (16 11:56 -0800)
treefb43145256aebc5dd3ef75919ce65f78ecb06d6b
parentdfa7c7d221d05499063f9bf95f507af8a882bfeb
gitweb: Make config_to_multi return [] instead of [undef]

This is important for the list of clone urls, where if there are
no per-repository clone URL configured, the default base URLs
are never used for URL construction without this patch.

Add tests for different ways of setting project URLs, just in case.
Note that those tests in current form wouldn't detect breakage fixed
by this patch, as it only checks for errors and not for expected
output.

Signed-off-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/gitweb.perl
t/t9500-gitweb-standalone-no-errors.sh