From f9afacdc45278c1d495863fc4cda9dbf10ee35c2 Mon Sep 17 00:00:00 2001 From: Oliver Lin Date: Tue, 1 Dec 2026 21:36:24 +0800 Subject: [PATCH] fix: repair the per-run log index and the release checkout path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two independent faults surfaced on the same publish run. 1. Every run directory listed as "This directory is empty". The log files were present and served correctly, but /log//index.html claimed the directory was empty. stage-log-index.sh rebuilt the /log/ listing by creating one empty directory per run and running generate-index.sh over that tree. generate-index.sh walks recursively, so it wrote an "empty directory" index inside every run directory, and the workflow then synced that tree over log/ — replacing the real per-run index that publish-repo.sh had generated from the staged files. The script now builds the listing in a scratch tree and copies out only its root index.html, so rebuilding /log/ can no longer touch the per-run indexes. 2. No release was ever created. publish-log-release.sh located the repository with `git -C