summaryrefslogtreecommitdiff
path: root/per-service
diff options
context:
space:
mode:
authorAndy Doan <andy.doan@linaro.org>2016-01-22 10:21:25 -0600
committerAndy Doan <andy.doan+gerrit@linaro.org>2016-01-22 20:25:04 +0000
commit1b458943b30424df9bb4dc12f454a267c93b9926 (patch)
tree9ca6c92080381fe1a7754597d80b3b455237f6b0 /per-service
parent540e764e7fa06afc96b30eec4b22e252e1e09994 (diff)
gitweb: fix "ReferenceError: onloadTZSetup is not defined"
The default for gitweb is to require this, but we don't provide this JS function and wind up getting an error in production. This changes the option so we'll stop having the bug in production. The real question, however, is how/why Ubuntu's packaging for this does not provide any JS (ie this *can't* be used): dpkg -L gitweb /. /usr /usr/share /usr/share/doc /usr/share/doc/gitweb /usr/share/doc/gitweb/README.Debian /usr/share/doc/gitweb/examples /usr/share/doc/gitweb/examples/index.aux-generation /usr/share/doc/gitweb/README /usr/share/doc/gitweb/changelog.gz /usr/share/doc/gitweb/NEWS.Debian.gz /usr/share/doc/gitweb/copyright /usr/share/doc/gitweb/changelog.Debian.gz /usr/lib /usr/lib/cgi-bin /etc /etc/gitweb.conf /etc/apache2 /etc/apache2/conf-available /etc/apache2/conf-available/gitweb.conf /usr/lib/cgi-bin/gitweb.cgi Change-Id: I2ee5f538487b3858c7022c132bc57808098adff0 Reviewed-on: https://review.linaro.org/10080 Reviewed-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
Diffstat (limited to 'per-service')
-rw-r--r--per-service/git-servers/roles/gitweb/templates/gitweb.conf1
1 files changed, 1 insertions, 0 deletions
diff --git a/per-service/git-servers/roles/gitweb/templates/gitweb.conf b/per-service/git-servers/roles/gitweb/templates/gitweb.conf
index 63672de8..2326d2f7 100644
--- a/per-service/git-servers/roles/gitweb/templates/gitweb.conf
+++ b/per-service/git-servers/roles/gitweb/templates/gitweb.conf
@@ -45,6 +45,7 @@ $feature{'blame'}{'default'} = [0];
$feature{'blame'}{'override'} = 0;
$feature{'pathinfo'}{'default'} = [1];
$feature{'avatar'}{'default'} = ["gravatar"];
+$feature{'javascript-timezone'}{'default'} = ['', 'gitweb_tz', 'datetime'];
$omit_age_column = 1;
$omit_owner = 1;
$projects_list_description_width = 100;