From f017e51e8025b394a26299d03a40afe0df5fe14a Mon Sep 17 00:00:00 2001 From: mwolson_admin Date: Sun, 22 Jun 2008 02:19:08 -0400 Subject: [PATCH] Move some of our customizations out into gitweb.conf. Also, set a null default value for cached_front_page, because this may eventually get sent to the git mailing list. --- gitweb.cgi | 13 ++++--------- gitweb.conf | 14 +++++++++++++- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/gitweb.cgi b/gitweb.cgi index 6b5bd8a..a720677 100755 --- a/gitweb.cgi +++ b/gitweb.cgi @@ -43,13 +43,11 @@ our $project_maxdepth = 2007; our $home_link = $my_uri || "/"; # string of the home link on top of all pages -# hcoop-change: Customize. -our $home_link_str = "HCoop"; +our $home_link_str = "projects"; # name of your site or organization to appear in page titles # replace this with something more descriptive for clearer bookmarks -# hcoop-change: Customize. -our $site_name = "HCoop Git" +our $site_name = "" || ($ENV{'SERVER_NAME'} || "Untitled") . " Git"; # filename of html text to include at top of each page @@ -59,7 +57,7 @@ our $home_text = "indextext.html"; # filename of html text to include at bottom of each page our $site_footer = ""; # filename of cached version of front page -our $cached_front_page = "/var/local/lib/gitweb/indexcache.html"; +our $cached_front_page = ""; # URI of stylesheets our @stylesheets = ("gitweb.css"); @@ -95,10 +93,7 @@ our $strict_export = ""; # list of git base URLs used for URL to where fetch project from, # i.e. full URL is "$git_base_url/$project" -# hcoop-change: We like several URLs. -#our @git_base_url_list = grep { $_ ne '' } (""); -our @git_base_url_list = ('git://git.hcoop.net/git', - 'http://git.hcoop.net/git'); +our @git_base_url_list = grep { $_ ne '' } (""); # default blob_plain mimetype and default charset for text/plain blob our $default_blob_plain_mimetype = 'text/plain'; diff --git a/gitweb.conf b/gitweb.conf index 6a5c888..4256c3f 100644 --- a/gitweb.conf +++ b/gitweb.conf @@ -1,3 +1,5 @@ +# -*- Perl -*- + # path to git projects (.git) $projectroot = "/var/cache/git"; @@ -11,11 +13,21 @@ $git_temp = "/tmp"; $home_link_str = "HCoop"; # html text to include at home page -$home_text = "indextext.html"; +$home_text = "/var/local/lib/gitweb/indextext.html"; + +# filename of cached version of front page +$cached_front_page = "/var/local/lib/gitweb/indexcache.html"; + +# name of site +$site_name = "HCoop Git"; # file with project list; by default, simply scan the projectroot dir. $projects_list = $projectroot; +# list of git base URLs used for URL to where fetch project from +@git_base_url_list = ('git://git.hcoop.net/git', + 'http://git.hcoop.net/git'); + # stylesheet to use $stylesheet = "/gitweb.css"; -- 2.20.1