Repository navigation
fix(markdown-format): name the approval marker in POSIX form on Git Bash - #12414
Conversation
Git for Windows prints `--git-common-dir` as `C:/...`, which the drive-letter branch in md_trust missed (it matched only `C:\...`), so the pre-commit entry named the approval marker in mixed form. Normalize either separator through cygpath. The marker tests now compare against the repository's physical path, since Git Bash resolves /tmp to the user temp directory. markdown-check.test.sh builds its no-markdownlint PATH from exec wrappers instead of symlinks: Git Bash's ln -s copies the binary away from its DLLs and every case exited 127. Refs: #9889 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review: PR #12414, no security issues foundcritical-findings: 0 I read all four changed files in full in the diff: the changeset note,
The change only rewrites the spelling of the same directory. It widens nothing: it adds no new way to reach the Test files. Two marker checks now compare against The diff deletes or softens no instruction, changes no trust control or merge hold, and adds no spend. Embedded text: the PR context contains no directive aimed at this lane. |
|
claude-review reviewed Code review: no findingsI read every hunk of all four changed files and found nothing to block.
Tests
Changelog fragment: Closing issue #9889: acceptance criteria
Embedded text: none in the PR context that tries to steer this review. Paved paths / path-scoped rules: I didn't look for the repo's standards index or for |
Closes #9889
Summary
The six formatter suites #9889 lists already pass on Windows Git Bash at current main: #10896's
tr -d '\r'reads and working-strace probe fixed them. The one failure left was markdown-format's "the pre-commit entry names an approval marker in the git directory" case, and the same cause failed two cases inmarkdown-check.test.sh, along with ten more there from a separate cause.Fix
markdown-gates.sh: Git for Windows prints--git-common-dirasC:/.... The drive-letter branch matched onlyC:\..., so the marker was named in mixed form. It now matches either separator and converts throughcygpath -u.pwd -P), since Git Bash resolves/tmpto the user temp directory (/c/Users/.../Temp).markdown-check.test.shbuilds its no-markdownlint PATH fromexecwrapper scripts, the waymarkdown-format.test.shalready does. Git Bash'sln -scopies the binary away from its DLLs, sobashexited 127 in all ten missing-tool cases.Verification
Windows 11 Git Bash 5.3.15 (jq 1.8.2, node v24.21.0), on a fresh clone of main
1ee4a3dd9b:actionlint/hooks/actionlint-check.test.shbash-format/hooks/bash-format.test.shbiome-format/hooks/biome-format.test.shgo-format/hooks/go-format.test.shpowershell-format/hooks/powershell-format.test.shtypos-format/hooks/typos-format.test.shmarkdown-format/hooks/markdown-format.test.shmarkdown-format/git-hooks/markdown-check.test.shThe census cases skip on Git Bash: its Cygwin
stracefails the working-strace probe. Linux (WSL), same eight suites at this head: all pass, with each census case running.scripts/check-affected.sh --testson the committed head: 14 passed, 2 skipped.Related
🤖 Generated with Claude Code