Move some of our customizations out into gitweb.conf.
authormwolson_admin <mwolson_admin@deleuze.hcoop.net>
Sun, 22 Jun 2008 06:19:08 +0000 (02:19 -0400)
committermwolson_admin <mwolson_admin@deleuze.hcoop.net>
Sun, 22 Jun 2008 06:19:08 +0000 (02:19 -0400)
Also, set a null default value for cached_front_page, because this may
eventually get sent to the git mailing list.

gitweb.cgi
gitweb.conf

index 6b5bd8a..a720677 100755 (executable)
@@ -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';
index 6a5c888..4256c3f 100644 (file)
@@ -1,3 +1,5 @@
+# -*- Perl -*-
+
 # path to git projects (<project>.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";