Skip to content

fix(core): bypass Windows Git lookup - #43998

Open
opencode-agent[bot] wants to merge 1 commit into
v2from
windows-git-path
Open

fix(core): bypass Windows Git lookup#43998
opencode-agent[bot] wants to merge 1 commit into
v2from
windows-git-path

Conversation

@opencode-agent

Copy link
Copy Markdown
Contributor

Summary

  • resolve the Git executable once on Windows through a shared Core helper
  • use the resolved executable for repository, worktree, snapshot, and VCS operations
  • bypass cross-spawn lookup for absolute native Windows .exe and .com commands
  • preserve existing lookup behavior for non-Windows and shell-backed commands

Verification

  • bun typecheck in packages/util
  • bun typecheck in packages/core
  • bun test test/git.test.ts test/vcs.test.ts in packages/core (12 passed)
  • git diff --check

Requested by: @neriousy (Filip via Slack)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant