Skip to content

[GITP-58] Block checkout of reserved .git paths#5

Open
0xMorph wants to merge 1 commit intomainfrom
codex/gitp-58-block-reserved-git-checkout
Open

[GITP-58] Block checkout of reserved .git paths#5
0xMorph wants to merge 1 commit intomainfrom
codex/gitp-58-block-reserved-git-checkout

Conversation

@0xMorph
Copy link
Copy Markdown

@0xMorph 0xMorph commented Apr 28, 2026

Simulated fix for Apex finding GITP-58.

This rejects index checkout requests that would materialize any path containing a reserved .git component. Both full-index checkout and explicit path checkout fail before invoking git checkout-index, preventing staged .git/hooks/... paths from being written as executable hooks.

Validation: not run; targeted simulation PR for fix-review testing.

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.

1 participant