summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5c95fab)
raw | patch | inline | side by side (parent: 5c95fab)
author | Martin Waitz <tali@admingilde.org> | |
Wed, 16 Aug 2006 22:28:39 +0000 (00:28 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 17 Aug 2006 10:04:46 +0000 (03:04 -0700) |
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>
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>
gitweb/gitweb.perl | patch | blob | history |
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 43285798e9beb0653278e42065bd829dd83d28bc..0dd24679dde0beed8aa8ffe5657420b3f9f6f229 100755 (executable)
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
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++";