git-repo

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

commit 82720d6896df5fe48f836f272b337f1cba954922
parent dfeb76b1136dd031325a8eeae2a51b0d437046e0
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Fri, 30 May 2025 18:09:32 +0200

git-publish: fix post-receive hook

The git and WWW directories used to create the HTML index have been
reversed.

Diffstat:
Mpost-receive.in | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/post-receive.in b/post-receive.in @@ -57,10 +57,10 @@ make_index() # regular expressions for find directives dir__=$(dirname "${reposdir}") git__=$(basename "${reposdir}") - reposdir="${dir__}/${www__}" + reposdir="${dir__}/${git__}" dir__=$(dirname "${destdir}") www__=$(basename "${destdir}") - destdir="${dir__}/${git__}" + destdir="${dir__}/${www__}" # Build list of candidate git repositories from the directories # of the publicly exposed WWW directory