The git binary on the Windows PATH is a Windows build. Pointed at a
`\wsl.localhost\<distro>\…` worktree it reaches every file through the 9P
file server, one `stat` per worktree file. Measured on a 3 102-file
repository: `git status` did not finish in 180 s, `git diff --numstat`
did not finish in 25 s — while the SAME argv inside the distribution
answered in 0.47 s. The panel retried on timeout, and each retry left an
orphaned `git.exe` behind, so the source-control tab never loaded.
`spawnGit` now reads the distribution and POSIX path out of a UNC cwd
(`wslLaunch`, accepting `\wsl.localhost\`, the legacy `\wsl$\` share and
the forward-slash spelling) and, for those cwds only, launches
`wsl.exe -d <distro> --cd <path> -e git …` with the `-C <cwd>` prefix
replaced by `--cd`. `-e`, not `--`: the `--` form re-parses the tail as a
shell command line, which mangles `%(refname:short)` and anything else
carrying `()`/`[]`. `WSLENV` carries `LC_ALL`/`GIT_OPTIONAL_LOCKS` across
the boundary, which wsl.exe otherwise drops.
Everything else is untouched and shares one code path: the timeout, the
stdout/stderr byte caps, the NUL field cap, `killTree()` (which reaps the
distribution-side process too), the error strings and the
dubious-ownership retry. A non-UNC cwd spawns exactly the argv it always
did.