git-repo

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

commit d94d91f77b1a8738f4d0ed8dab0506b7d3229fa6
parent 09762c6ecdf490a57f42b109725275e7d4c14b7e
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Fri, 30 May 2025 09:31:17 +0200

git-publish: correction of repository publication

The symbolic link to the repository was made up to the name of the link.
This works as expected until the link already exists: the link is then
created in the git repository itself, referenced by the link.

Hence this commit, which removes the target link name to avoid following
it. And thus forcing the creation of the link in the publicly served
directory.

Diffstat:
Mgit-publish | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/git-publish b/git-publish @@ -103,8 +103,7 @@ publish_repo() # Publish the git repository, i.e. create a symbolic link to it in the # publicly exposed directory - repo_git="${dir_git}/${repo_name}.git" - ln -sf "${repo}" "${repo_git}" + ln -sf "${repo}" "${dir_git}" # Create directory publicly served by the WWW daemon repo_www="${dir_www}/${repo_name}"