Skip to content

[GITP-14] Harden ref create and rename paths#4

Open
0xMorph wants to merge 1 commit intomainfrom
codex/gitp-14-harden-ref-paths
Open

[GITP-14] Harden ref create and rename paths#4
0xMorph wants to merge 1 commit intomainfrom
codex/gitp-14-harden-ref-paths

Conversation

@0xMorph
Copy link
Copy Markdown

@0xMorph 0xMorph commented Apr 28, 2026

Simulated fix for Apex finding GITP-14.

This tightens symbolic-reference path validation at create, rename, read, and write sites. It rejects normalized paths that escape the repository refs area and rejects branch/ref names that shadow reserved refs such as HEAD, preventing create/rename flows from writing canonical ref files.

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