git-barepo

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

commit ebd2fb5f6ffbf4689b350948558856298b7eb31f
parent 3c1eb493bed93c20a218ece8081fcf4d9b4802cc
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Tue, 26 May 2026 19:28:58 +0200

git-publish: corrects the writing of some tests

Shellcheck report warnings that this commit fixes.

Diffstat:
Mtest_publish.sh | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/test_publish.sh b/test_publish.sh @@ -120,7 +120,7 @@ git publish -d "${git}" # Attempting to unpublish a non-published repository results in an error GIT_PUBLISH_DIR_GIT="${srv}/git" \ GIT_PUBLISH_DIR_WWW="${srv}/www" \ -git publish -d "${git}" && false || true +git publish -d "${git}" || die 1 # The published content should be removed [ ! -e "${srv}/git/${name}.git" ] @@ -198,10 +198,10 @@ rm "${git}/publication_ban" # The repository cannot be published if the public path exists and it is # not the result of an earlier publication of the reposite touch "${srv}/git/${name}.git" -git publish "${git}" && false || true +! git publish "${git}" || die 1 rm "${srv}/git/${name}.git" mkdir "${srv}/git/${name}.git" -git publish "${git}" && false || true +! git publish "${git}" || die 1 rmdir "${srv}/git/${name}.git" ########################################################################