Repository navigation
fix(bootstrap): default run with hooks reaches the commit; repo with no commits works - #5
Conversation
…no commits works - Step 7 declared `local hook_marker` outside a function. bash rejects that, and under `set -e` a default run (hooks on) exited there, before the commit. It is now a plain variable. - Step 1 took the day-zero commit from `git rev-parse HEAD || echo unknown`. In a repository with no commits, rev-parse prints "HEAD" before failing, so the value became "HEAD\nunknown" and the step 6 sed that seeds BASELINE.md died on the newline. It now uses `rev-parse -q --verify HEAD` (prints nothing on failure); the branch comes from `symbolic-ref -q --short HEAD` for the same reason. Tests (tests/test_bootstrap_staging.py, BootstrapRunsEndToEnd): a default run installs the three hook bridges and commits; a rerun updates its own bridges and leaves a foreign hook alone; a repository with no commits bootstraps with and without hooks and records day_zero_commit "unknown". All four fail on the previous bootstrap.sh. Signed-off-by: Larry Klosowski <larryklosowski@proton.me> Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FPJzHNqGLdTVoFzde3Sxbw
Claim grader (shadow mode)Each commit / PR-text element scored against the claim-compression rubric. Shadow mode: this comment is informational; merge is not blocked.
|
BerryManifold
left a comment
There was a problem hiding this comment.
Automated Codex static review of b8d9546d8bd5ca2f0d762c07d82bce6b1640aede is complete. Result: blockers; details retained privately. Details and coverage limits are recorded in the project's private review log. No tests were executed by this reviewer. Both account submissions represent the same Codex review, not independent reviews.
Matr0xshka
left a comment
There was a problem hiding this comment.
Automated Codex static review of b8d9546d8bd5ca2f0d762c07d82bce6b1640aede is complete. Result: blockers; details retained privately. Details and coverage limits are recorded in the project's private review log. No tests were executed by this reviewer. Both account submissions represent the same Codex review, not independent reviews.
Summary
Two
bootstrap.shfailures:local hook_marker=...sat outside a function. bash rejectslocalthere, and underset -ea default run (hooks on, i.e. without--no-hooks) exited before the commit. It is now a plain variable.git rev-parse HEAD 2>/dev/null || echo unknown. With no commits, rev-parse printsHEADbefore failing, so the value becameHEAD\nunknownand the sed that seedsBASELINE.mddied on the newline. It now usesgit rev-parse -q --verify HEAD(prints nothing on failure). The branch usesgit symbolic-ref -q --short HEADfor the same reason.Tests (
tests/test_bootstrap_staging.py, new classBootstrapRunsEndToEnd)--no-hooksand recordsday_zero_commit: "unknown"(no<full git hash>orHEAD\nunknownleft in BASELINE.md).All four fail on the previous
bootstrap.sh. Full module: 29 tests pass locally (python3 -m unittest discover -s tests -p test_bootstrap_staging.py).🤖 Generated with Claude Code
https://claude.ai/code/session_01FPJzHNqGLdTVoFzde3Sxbw