Skip to content

fix: drop empty-value sshCommand/askPass overrides that git executes - #5

Merged
tnunamak merged 1 commit into
mainfrom
fix/drop-empty-exec-overrides
Aug 19, 2026
Merged

fix: drop empty-value sshCommand/askPass overrides that git executes#5
tnunamak merged 1 commit into
mainfrom
fix/drop-empty-exec-overrides

Conversation

@tnunamak

Copy link
Copy Markdown
Member

Follow-up to #4, caught in end-to-end verification against the published policy before rolling out to consumers.

Setting core.sshCommand and core.askPass to the empty string does not disable them — git tries to EXECUTE the empty value:

error: cannot run : No such file or directory
fatal: unable to fork

That broke fetch entirely, so a fresh install could not bootstrap at all.

credential.helper= is kept: an empty value is the documented way to reset the helper list, and it verifies clean.

The core.fsmonitor, core.hooksPath, protocol.ext.allow and uploadpack.packObjectsHook overrides are unaffected and still neutralize the execution vectors #4 added them for — re-verified by planting core.fsmonitor and confirming it never fires.

Assisted-by: AI

Setting core.sshCommand and core.askPass to the empty string does not disable
them — git tries to EXECUTE the empty value and dies with "cannot run : No such
file or directory", breaking fetch entirely. Caught in end-to-end verification
against the published policy before rollout.

credential.helper= is different and is kept: an empty value is the documented
way to reset the helper list.

fsmonitor, hooksPath, protocol.ext and packObjectsHook overrides are unaffected
and still neutralize the execution vectors they were added for.

Assisted-by: AI
@tnunamak
tnunamak merged commit 8684f88 into main Aug 19, 2026
1 check passed
@tnunamak
tnunamak deleted the fix/drop-empty-exec-overrides branch August 19, 2026 01:32
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