From e87886e86d2cc7cd212aa6b3295db3afcd42f41a Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Sat, 8 Aug 2020 09:44:11 -0700 Subject: [PATCH] install.sh: configure custom git-browser titles Set the proper configuration variables so that the git-browser "graphiclog1" and "graphiclog2" displays show a title consistent with the rest of the web interface. Signed-off-by: Kyle J. McKay --- install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install.sh b/install.sh index ee09737..2569bd0 100755 --- a/install.sh +++ b/install.sh @@ -886,11 +886,14 @@ cat >"$basedir/gitweb"/git-browser.conf.$$ <<-EOT EOT chown_make "$basedir/gitweb"/git-browser.conf.$$ mv -f "$basedir/gitweb"/git-browser.conf.$$ "$basedir/gitweb"/git-browser.conf +esctitle="$(printf '%s\n' "$cfg_title" | LC_ALL=C sed 's/\\/\\\\/g;s/"/\\"/g;')" || : cat >"$webroot"/git-browser/GitConfig.js.$$ <<-EOT cfg_gitweb_url="$cfg_gitweburl/" cfg_browsercgi_url="$cfg_webadmurl/git-browser.cgi" cfg_home_url="$cfg_gitweburl/%n" cfg_home_text="summary" + cfg_bycommit_title="$esctitle - %n/graphiclog1" + cfg_bydate_title="$esctitle - %n/graphiclog2" EOT chown_make "$webroot"/git-browser/GitConfig.js.$$ mv -f "$webroot"/git-browser/GitConfig.js.$$ "$webroot"/git-browser/GitConfig.js -- 2.11.4.GIT