summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLuke Parker <[email protected]>2026-02-24 21:40:38 +1000
committerGitHub <[email protected]>2026-02-24 21:40:38 +1000
commit79254c10201a3978ac72ef2a047bb4070efdc41d (patch)
tree827f9bdef3bd9a2acf625f8beb2af295c3c40f81
parentef7f222d80d1b5d2f3c18e86efba99a1f308c1f9 (diff)
downloadopencode-79254c10201a3978ac72ef2a047bb4070efdc41d.tar.gz
opencode-79254c10201a3978ac72ef2a047bb4070efdc41d.zip
fix(test): normalize git excludesFile path for Windows (#14893)
-rw-r--r--packages/opencode/test/snapshot/snapshot.test.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/opencode/test/snapshot/snapshot.test.ts b/packages/opencode/test/snapshot/snapshot.test.ts
index 79b1a83cd..1804ab5c2 100644
--- a/packages/opencode/test/snapshot/snapshot.test.ts
+++ b/packages/opencode/test/snapshot/snapshot.test.ts
@@ -548,7 +548,7 @@ test("git info exclude keeps global excludes", async () => {
const global = `${tmp.path}/global.ignore`
const config = `${tmp.path}/global.gitconfig`
await Bun.write(global, "global.tmp\n")
- await Bun.write(config, `[core]\n\texcludesFile = ${global}\n`)
+ await Bun.write(config, `[core]\n\texcludesFile = ${global.replaceAll("\\", "/")}\n`)
const prev = process.env.GIT_CONFIG_GLOBAL
process.env.GIT_CONFIG_GLOBAL = config