Blame SOURCES/git-1.8-gitweb-home-link.patch

6743a1
diff -up git-1.8.4.2/gitweb/gitweb.perl.orig git-1.8.4.2/gitweb/gitweb.perl
6743a1
--- git-1.8.4.2/gitweb/gitweb.perl.orig	2013-10-28 14:17:38.000000000 -0400
6743a1
+++ git-1.8.4.2/gitweb/gitweb.perl	2013-10-29 16:49:07.302747507 -0400
6743a1
@@ -83,7 +83,7 @@ our $projectroot = "++GITWEB_PROJECTROOT
6743a1
 our $project_maxdepth = "++GITWEB_PROJECT_MAXDEPTH++";
6743a1
 
6743a1
 # string of the home link on top of all pages
6743a1
-our $home_link_str = "++GITWEB_HOME_LINK_STR++";
6743a1
+our $home_link_str = $ENV{'SERVER_NAME'} ? "git://" . $ENV{'SERVER_NAME'} : "projects";
6743a1
 
6743a1
 # extra breadcrumbs preceding the home link
6743a1
 our @extra_breadcrumbs = ();