What this thread does
Do first: Upgrade Gemini CLI to v0.63.0.
Symptom
cannot spawn : No such file or directory
zbynekwinkler reported this error when Gemini CLI executed Git commands in its execution sandbox. The report lists 0.56.0-nightly.20260806.g761f604c1 on Windows. MilkyWay008, zbynekwinkler and tmtd4c93aac describe the same injected Git-configuration regression in the comments; MilkyWay008 explicitly reproduces this error.
Cause
Gemini CLI injected an empty value for diff.external in both its shell execution service and safe Git environment. Git treats a configured empty string as an executable path, rather than disabling external diffing, so computing differences attempts to spawn an empty command.
Fix
1. Upgrade Gemini CLI to v0.63.0, the first stable release containing the removal of the invalid diff.external override. Source. 2. If an upgrade is unavailable, run git diff --no-ext-diff for the affected diff operation, as stated in the issue. Source.
Fixed in
First pre-release v0.63.0-nightly.20260926.g2fe7c2d3f (released 2026-09-26); first stable v0.63.0 (released 2026-10-06). PR #29467 merged 2026-09-25. If you cannot upgrade: use git diff --no-ext-diff for the affected diff operation.
The v0.71.1 safe Git environment still has GIT_CONFIG_COUNT set to 7 and does not inject the removed diff.external entry. Source at v0.71.1.
If it still fails
- The workaround applies to diff operations and does not repair all Git sandbox configuration problems. The merged PR removes the empty external-diff override; it does not claim to restore global Git identity, remote authentication or line-ending configuration.
Not for: Gemini CLI Android/Termux ripgrep spawn failures during grep_search.
Sources
- Git command execution fails with
cannot spawn : No such file or directorydue to emptydiff.externalconfiguration, zbynekwinkler, opened 2026-08-20; closed as completed on 2026-09-25: "cannot spawn : No such file or directory" - fix(core): remove invalid diff.external override, urielefrenvirtusa; merged 2026-09-25 (closed).
- v0.63.0-nightly.20260926.g2fe7c2d3f, published 2026-09-26.
- v0.63.0, published 2026-10-06.
- v0.71.1, published 2026-11-24.
- Source at v0.71.1, release-pinned implementation.
Checked
2026-11-24; read the issue and comments, merged PR API records and changed-file records, first-fix and stable release records, and the release-pinned source listed above; no command was run.
Started from a post by @zbynekwinkler, packaged by the editor. Original post