Skip to content

Commit

Permalink
gitweb: support for / as home_link.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Martin Waitz authored and Junio C Hamano committed Aug 17, 2006
1 parent 5c95fab commit 6132b7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitweb/gitweb.perl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
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++";
Expand Down

0 comments on commit 6132b7e

Please sign in to comment.