site

A custom static site generator written in C.
git clone https://unitehenry.com/git/site.git
Log | Files | Refs | README

commit ce964816ea62485c45fa629220c6b8a3033f42aa
parent 0f77a2e0452f6bbf97983b99d8fdcdff280b9172
Author: Henry Unite <unitehenry@gmail.com>
Date:   Sat, 28 Nov 2026 19:40:18 +0000

feat(stagit): publish repository bundles

Generate a repo.bundle for each repository containing all branches and tags.

Diffstat:
MREADME.md | 9+++++++++
Mscripts/stagit | 3+++
2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/README.md b/README.md @@ -23,6 +23,15 @@ be generated first. Projects without a GitHub link are skipped. The pages are written to `build/git`. Repositories are mirrored under `.cache/stagit/repos`, so later runs only fetch new commits. +Each repository directory also includes a `repo.bundle` containing all branches +and tags. Static hosting cannot clone directly from a bundle URL, so download +the bundle first: + +```bash +curl -O https://unitehenry.com/git/openpod/repo.bundle +git clone repo.bundle openpod +``` + Generated pages are styled with `static/git/style.css` and deployed by the build workflow. The git pages require `stagit`, [`libgit2`](https://libgit2.org), and [`htmlq`](https://github.com/mgdm/htmlq). diff --git a/scripts/stagit b/scripts/stagit @@ -159,6 +159,9 @@ for repo_dir in "${repo_dirs[@]}"; do cd "$OUT_DIR/$name" "$STAGIT_BIN" -u "$BASE_URL/$name/" "$repo_dir" + # Bundle all branches and tags so the repository can be downloaded. + git --git-dir="$repo_dir" bundle create -q repo.bundle HEAD --branches --tags + # Assets are copied rather than symlinked so the build artifact works on # hosts that do not preserve symlinks. cp "$ASSET_DIR/style.css" "$ASSET_DIR/logo.png" "$ASSET_DIR/favicon.png" .