stagit

static page generator for git
git clone https://git.michaelneuper.com/stagit.git
README | Files | Log | Refs | LICENSE

commit 4061fce3df9c1d191bd930a947cfb5348ddf3316
parent b5460fe33037ae5a5e35e50fde3b49cf5bed5a57
Author: Michael Neuper <michael@michaelneuper.com>
Date:   Thu, 29 Oct 2026 10:07:08 +0200

publish empty alternates files

to make clones work over HTTP/2

Diffstat:
Mbuild.sh | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/build.sh b/build.sh @@ -101,6 +101,11 @@ while IFS=$us read -r name branch lang desc <&3; do --max-pack-size=20m --no-write-bitmap-index git -C "$repo" update-server-info cp -R "$repo" "$out/$name.git" + # Git fails on a 404 for these, and libcurl 8.7.1 (macOS's) + # then corrupts the HTTP/2 connection, so the clone can't + # find its packs. A blank line lists no alternates. + echo > "$out/$name.git/objects/info/http-alternates" + echo > "$out/$name.git/objects/info/alternates" fi echo "$(git -C "$repo" log -1 --format=%ct) $repo" >> "$work/index.lst"