Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 3c59f4ef021626d287a69c16dc31ddae > files > 3

gitweb-caching-1.6.5.2-8.b1ab8b5.fc14.src.rpm

diff -uNr gitweb.bak/gitweb/gitweb_defaults.perl gitweb/gitweb/gitweb_defaults.perl
--- gitweb.bak/gitweb/gitweb_defaults.perl	2009-10-07 22:17:05.000000000 -0700
+++ gitweb/gitweb/gitweb_defaults.perl	2009-12-06 13:09:37.000000000 -0800
@@ -46,7 +46,7 @@
 $home_link = $my_uri || "/";
 
 # string of the home link on top of all pages
-$home_link_str = "++GITWEB_HOME_LINK_STR++";
+$home_link_str = $ENV{'SERVER_NAME'} ? "git://" . $ENV{'SERVER_NAME'} : "projects";
 
 # name of your site or organization to appear in page titles
 # replace this with something more descriptive for clearer bookmarks