fix(#91): read committed fidelity sign-off

This commit is contained in:
2026-07-29 23:25:22 -04:00
parent 44a32bfd73
commit 3228e4adbd
2 changed files with 13 additions and 3 deletions

View File

@@ -20,7 +20,7 @@ const required = ['index.html', 'summary.md']
try {
for (const file of required) await readFile(join(evidence, file))
git('cat-file', '-e', `HEAD:${signoff}`)
const text = await readFile(signoff, 'utf8')
const text = git('show', `HEAD:${signoff}`)
const candidate = text.match(/^- Candidate commit: ([0-9a-f]{40})$/mi)?.[1]
if (!candidate) throw new Error(`${signoff} must contain a full candidate commit SHA`)
git('cat-file', '-e', `${candidate}^{commit}`)