site

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

commit 1eff9f774aaaf4a321f935ee9cd54f656c8505eb
parent 476b71322d01b06aac81c9666d1d878abe166990
Author: Henry Unite <unitehenry@gmail.com>
Date:   Sat, 28 Nov 2026 21:14:05 +0000

docs(stagit): explain why changed mirrors are recloned

Diffstat:
Mscripts/stagit | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/scripts/stagit b/scripts/stagit @@ -129,6 +129,8 @@ while IFS=$'\t' read -r name description owner url; do current_url="$(git --git-dir="$repo_dir" config --get remote.origin.url || true)" if [ "$current_url" != "$url" ]; then + # A project may switch to a different repository (for example, a mirror). + # A normal update would keep serving refs from the old remote, so reclone. printf 'Recloning %s (remote changed from %s)...\n' "$name" "$current_url" rm -rf "$repo_dir" git clone --quiet --mirror "$url" "$repo_dir"