Skip to content

[GITP-57] Validate branch names before config writes#6

Open
0xMorph wants to merge 1 commit into
mainfrom
codex/gitp-57-validate-branch-config-names
Open

[GITP-57] Validate branch names before config writes#6
0xMorph wants to merge 1 commit into
mainfrom
codex/gitp-57-validate-branch-config-names

Conversation

@0xMorph
Copy link
Copy Markdown

@0xMorph 0xMorph commented Apr 28, 2026

Simulated fix for Apex finding GITP-57.

This validates branch names before branch rename and before opening branch-scoped config sections. Invalid names containing control characters, path traversal, or other ref-breaking syntax are rejected before they can be interpolated into config sections such as branch "...", preventing injected config keys like core.sshCommand from being written and used on later fetches.

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