From e91ed3deb89c1c9eb687610cb2c0e9c3322f860e Mon Sep 17 00:00:00 2001 From: letur Date: Sun, 13 Sep 2026 11:51:22 +0200 Subject: [PATCH] fix(isolation): record the probe commit's exit status, not echo's MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ยง3's probe printed `committed=$?` after an `echo`, so it always read 0 and the "a commit still works under hostile signing" assertion proved nothing. Capture the status right after the commit; against a no-op selftest_isolate the probe now reports committed=128. Claude-Session: https://claude.ai/code/session_01TVf5c2rWYcoVREhFKgquNJ --- scripts/isolation-selftest.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/isolation-selftest.sh b/scripts/isolation-selftest.sh index e66ec75..4b31352 100755 --- a/scripts/isolation-selftest.sh +++ b/scripts/isolation-selftest.sh @@ -301,8 +301,9 @@ on_debug() { if [ "$_seen" = 1 ] && [ "$depth" -le "$_base" ]; then probe_repo="$(mktemp -d)" (cd "$probe_repo" && git init -q p && cd p && printf x >f && git add f && git commit -qm probe) >/dev/null 2>&1 + local committed=$? echo "isolated=yes" - echo "committed=$?" + echo "committed=$committed" echo "branch=$(git -C "$probe_repo/p" rev-parse --abbrev-ref HEAD 2>/dev/null)" echo "hooks=$(git -C "$probe_repo/p" config --get core.hooksPath 2>/dev/null)" echo "home=$HOME"