Something went wrong. Try again.
opencode v2 mirror
Something went wrong. Try again.
123456789101112import path from "path"import { which } from "./which.js"
export function resolveGitExecutable(platform: NodeJS.Platform, resolved: string | null) { if (platform !== "win32" || !resolved) return "git" return path.resolve(resolved)}
const resolved = process.platform === "win32" ? which("git") : null
export const gitExecutable = resolveGitExecutable(process.platform, resolved)