summaryrefslogtreecommitdiff
path: root/packaging/git-1.5-gitweb-home-link.patch
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/git-1.5-gitweb-home-link.patch')
-rw-r--r--packaging/git-1.5-gitweb-home-link.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/packaging/git-1.5-gitweb-home-link.patch b/packaging/git-1.5-gitweb-home-link.patch
new file mode 100644
index 0000000..0d239fb
--- /dev/null
+++ b/packaging/git-1.5-gitweb-home-link.patch
@@ -0,0 +1,13 @@
+diff -uNr git-1.6.1.3/gitweb/gitweb.perl git-1.6.1.3-patch/gitweb/gitweb.perl
+--- git-1.6.1.3/gitweb/gitweb.perl 2009-02-08 03:46:30.000000000 +0800
++++ git-1.6.1.3-patch/gitweb/gitweb.perl 2009-02-27 12:05:24.000000000 +0800
+@@ -52,7 +52,8 @@
+ our $home_link = $my_uri || "/";
+
+ # string of the home link on top of all pages
+-our $home_link_str = "++GITWEB_HOME_LINK_STR++";
++
++our $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