Skip to content

[GITP-25] Block unsafe underscored git kwargs#2

Open
0xMorph wants to merge 1 commit into
mainfrom
codex/gitp-25-block-underscored-unsafe-options
Open

[GITP-25] Block unsafe underscored git kwargs#2
0xMorph wants to merge 1 commit into
mainfrom
codex/gitp-25-block-underscored-unsafe-options

Conversation

@0xMorph
Copy link
Copy Markdown

@0xMorph 0xMorph commented Apr 28, 2026

Simulated fix for Apex finding GITP-25.

This blocks unsafe top-level git(...) option kwargs before underscored Python names are transformed into command-line options. In particular, c=... and config=... now raise UnsafeOptionError instead of becoming -c / --config, which can re-enable config-driven command execution such as core.sshCommand.

Validation attempted: pytest -q test/test_git.py -k 'unsafe_options or unsafe_config_kwargs'.

Result: blocked in the temp clone because the repository pytest config requires pytest-cov (--cov=git) and that plugin is not installed.

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