[PATCH] gitweb: support for / as home_link.
- From
Martin Waitz <tali@admingilde.org>
- Date
- Aug 16, 2006, 22:28 UTC
- Message-ID
- <11557673263081-git-send-email-tali@admingilde.org>
- In-Reply-To
- <1155767325181-git-send-email-tali@admingilde.org>
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> --- gitweb/gitweb.perl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index a022569..0a0b37f 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -34,7 +34,7 @@ # location for temporary files needed fo 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++";
-- 1.4.2.rc2.gf055