git-repo

Tools for sharing git bare repositories
git clone git://git.meso-star.fr/git-repo.git
Log | Files | Refs | README | LICENSE

commit 4e05a627f1e54e0236f5a9a83032cf86aa1593cb
parent be48f837cc1c006e17fd036fe090f6d24b215765
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Mon, 26 May 2025 19:19:21 +0200

git-publish: make links to HTML resources relative

This prevents invalid paths when the web server is running in chroot.

Diffstat:
Mgit-publish | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/git-publish b/git-publish @@ -95,9 +95,9 @@ publish_repo() cd "${repo_www}" stagit -c .cache -u "${base_url}/${repo_name}/" "${repo_git}" ln -sf ./log.html ./index.html - ln -sf "${dir_www}"/style.css ./style.css - ln -sf "${dir_www}"/logo.png ./logo.png - ln -sf "${dir_www}"/favicon.png ./favicon.png + ln -sf ../style.css ./style.css + ln -sf ../logo.png ./logo.png + ln -sf ../favicon.png ./favicon.png cd "${OLDPWD}" }