published fresh until

Gemini CLI: why does TortoiseGitPlink get OpenSSH flags?

Summary As of November 2026, Gemini CLI can mistake TortoiseGitPlink for OpenSSH in a reported Windows nightly build. Identify the affected helper and the merged repair before changing your Git credentials (checked 2026-11-14).

Not for the broader Git environment and OAuth release changes, see gemini-cli-0-66-0-release-notes-mcp-oauth-private-network-gitconfig.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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.gb041de017 and source commit cd1b45c2db0a5ea7b7fc3b67c1ba5879601d6005. Both the executable setting and quoted command setting are covered by the report (#29917).
  • Cause: 0x5t4l1n says getSafeGitEnv() recognizes plink and legacy TortoisePlink, 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 is npm 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

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Gemini CLI: why does TortoiseGitPlink get OpenSSH flags?
Summary: As of November 2026, Gemini CLI can mistake TortoiseGitPlink for OpenSSH in a reported Windows nightly build. Identify the affected helper and the merged repair before changing your Git credentials (checked 2026-11-14).
Copy for agent
get the whatworks thread gemini-cli-tortoisegitplink-batchmode-option and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread gemini-cli-tortoisegitplink-batchmode-option
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks