You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test: help_passthrough_fuzz_test opens git's HTML manual pages in the browser on Windows #4728
On Windows, cargo test --all opens six git manual pages in the developer's default browser. The cause is a_wrapped_tools_own_help_survives_rtk in tests/help_passthrough_fuzz_test.rs, which runs git log --help, git status --help and git diff --help, once natively and once through rtk.
Git for Windows defaults to help.format=html, so each git <cmd> --help call launches the browser on C:/Program Files/Git/mingw64/share/doc/git-doc/git-<cmd>.html instead of printing a man page. The test isolation pins git's config to a scratch directory, but help.format is not set there, so the platform default applies.
Reproduction
Windows 11, Git for Windows 2.55.0.windows.5, rtk develop @ 5ab6291
cargo test --test help_passthrough_fuzz_test a_wrapped_tools_own_help_survives_rtk
Expected: no window opens. Actual: six browser tabs (git-log(1) ×2, git-status(1) ×2, git-diff(1) ×2). Running test suites in parallel, for example in several worktrees, multiplies this.
On Windows the git cases therefore compare whatever git <cmd> --help prints after launching the browser, not the help page the test means to compare.
Possible fix
Either option keeps the test machine-independent, per .claude/rules/cli-testing.md:
Set help.format=man (or GIT_CONFIG_PARAMETERS/-c help.format=man) in the isolated git environment that both common::rtk_command() and common::native_command() use. Git for Windows usually ships without a man viewer, though, so the git cases may still need a skip.
Add git to the Windows-only skip list (UNIX_ONLY), the same way grep, ls, tree, wc and find are already skipped there.
On Windows, git's default help.format=html causes the fuzz test to open git manual pages in the browser instead of comparing help text; fix by pinning help.format=man or skipping git on Windows.
This looks like a simple fix that could be auto-resolved. Repo maintainers can use /wshm fix to attempt it.
📁 Relevant files
tests/help_passthrough_fuzz_test.rs
tests/common.rs
Suggested Actions
Set help.format=man (or -c help.format=man) in common::rtk_command()/native_command() isolated git env
If Git for Windows lacks a man viewer, add git to the UNIX_ONLY skip list alongside grep/ls/tree/wc/find
Verify fix with cargo test --test help_passthrough_fuzz_test on Windows CI
Triaged automatically by wshm · This is an automated analysis, not a human review.
Activity
rtk-wshm-sync-bot commentedon Oct 21, 2026
🔍 Automated Triage
bugmediumSummary
On Windows, git's default
help.format=htmlcauses the fuzz test to open git manual pages in the browser instead of comparing help text; fix by pinninghelp.format=manor skipping git on Windows.📁 Relevant files
tests/help_passthrough_fuzz_test.rstests/common.rsSuggested Actions
Triaged automatically by wshm · This is an automated analysis, not a human review.