1
0
mirror of https://github.com/git/git.git synced 2024-09-28 04:10:41 +02:00

gitweb: support for / as home_link.

If the webserver is configured to use gitweb even for the root directory
of the site, then my_uri is empty which leads to a non-functional home
link.  Fix that by defaulting to "/" in this case.

Signed-off-by: Martin Waitz <tali@admingilde.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Martin Waitz 2006-08-17 00:28:39 +02:00 committed by Junio C Hamano
parent 5c95fab017
commit 6132b7e4bb

View File

@ -34,7 +34,7 @@ our $projectroot = "++GITWEB_PROJECTROOT++";
our $git_temp = "/tmp/gitweb";
# target of the home link on top of all pages
our $home_link = $my_uri;
our $home_link = $my_uri || "/";
# string of the home link on top of all pages
our $home_link_str = "++GITWEB_HOME_LINK_STR++";