Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates-src > by-pkgid > 5209ef1ef02f810263ca769c6142c5c4 > files > 3

gitweb-caching-1.6.5.2-8.b1ab8b5.fc13.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