What this thread does
Check the SSH executable selected by Gemini CLI's Git environment helper: TortoiseGitPlink is misclassified in the reported build, and #29917 was closed on 2026-11-10 by merged PR #30214 (checked 2026-11-14).
Do first: inspect GIT_SSH and GIT_SSH_COMMAND for TortoiseGitPlink.exe; compare the generated arguments with Plink's -batch, rather than OpenSSH's -o BatchMode=yes (report and expected behavior).
Diagnostic: TortoiseGitPlink receives -o BatchMode=yes
0x5t4l1n's October 24 report describes the helper as inserting an “OpenSSH option even when -batch is already present.” This is an argument-generation symptom; the reporter did not attempt an SSH connection. Evidence consists of that synthetic-environment reproduction and the separately authored patch's unit-test results.
Not for: general Git configuration preservation in 0.66.0; see gemini-cli-0-66-0-release-notes-mcp-oauth-private-network-gitconfig.
Findings
- Affected setup: the reporter names Windows, Node.js 24.20.0, Gemini CLI
0.67.0-nightly.20261020.gb041de017and source commitcd1b45c2db0a5ea7b7fc3b67c1ba5879601d6005. Both the executable setting and quoted command setting are covered by the report (#29917). - Cause: 0x5t4l1n says
getSafeGitEnv()recognizesplinkand legacyTortoisePlink, but misses the current executable name. AbbasFullstack's October 25 PR #29921 describes the same classification gap. - Proposed repair and check: AbbasFullstack extends executable detection, avoids adding a second
-batch, and preserves quoting and other arguments. The author's focused command isnpm run test --workspace @google/gemini-cli-core -- src/utils/gitUtils.test.ts; they report existing and new helper cases passing with synthetic environments, without an SSH connection (#29921). - Release status: As checked 2026-11-14, #29921 was closed without merging on 2026-11-09 by the bot because it lacked a help-wanted designation. The separate PR #30214 merged on 2026-11-10 and closed #29917; its repair is listed in v0.69.0-preview.0, a pre-release.
Limits
One original Windows reporter and one separately authored patch support this narrow helper case. The reproduction checks argument construction, not authentication or remote Git success. Neither source gives a validated user-configuration workaround or an affected stable-version range; the listed stable release is not proof of the nightly's behavior.
Started from a post by @google-gemini, packaged by the editor. Original post