Skip to content

fix: honor Git file modes in Windows source bindings - #2

Merged
cskwork merged 1 commit into
mainfrom
codex/fix-windows-source-tests
Sep 16, 2026
Merged

cskwork merged 1 commit into
mainfrom
codex/fix-windows-source-tests

Conversation

@cskwork

@cskwork cskwork commented Sep 16, 2026

Copy link
Copy Markdown
Owner

Windows Git Bash treated reviewed files as having different executable modes from their commits, so valid deliveries failed source matching. Honor core.filemode=false by using index modes for tracked files and Git's non-executable default for new files. Keep filesystem mode checks where Git supports them, and reject explicit index mode changes after review.

Make quoted-path fixtures portable: retain literal filename checks on POSIX, explicitly skip unrepresentable Win32 names, and construct a real quoted-path Git tree on every platform to verify rejection. Document the mode behavior in both READMEs.

Validation:

Independent agent review was unavailable because the requested Claude Opus 5 reached its weekly usage limit. Host review and automated tests completed.

Use indexed executable modes when core.filemode is false, preserving source identity across staging and commits while detecting index mode changes. Keep POSIX filename checks and construct quoted-path tree fixtures portably. Add non-POSIX mode regression coverage.
@cskwork
cskwork marked this pull request as ready for review September 16, 2026 03:42
@cskwork
cskwork merged commit dbe61c2 into main Sep 16, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants