summaryrefslogtreecommitdiff
path: root/gitweb
diff options
context:
space:
mode:
authorMartin Waitz <tali@admingilde.org>2006-08-17 00:28:39 +0200
committerJunio C Hamano <junkio@cox.net>2006-08-17 03:04:46 -0700
commit6132b7e4bbdbca14aff72d87784909810edefb82 (patch)
tree559c6b003ad35e1db0d8bba793dcd7c067fb581b /gitweb
parent5c95fab017681f6ab21bf82c195bf0a3826fe014 (diff)
downloadgit-6132b7e4bbdbca14aff72d87784909810edefb82.tar.gz
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>
Diffstat (limited to 'gitweb')
-rwxr-xr-xgitweb/gitweb.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 43285798e9..0dd24679dd 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -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++";