Skip to content

Commit 79254c1

Browse files
authored
fix(test): normalize git excludesFile path for Windows (#14893)
1 parent ef7f222 commit 79254c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/opencode/test/snapshot/snapshot.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ test("git info exclude keeps global excludes", async () => {
548548
const global = `${tmp.path}/global.ignore`
549549
const config = `${tmp.path}/global.gitconfig`
550550
await Bun.write(global, "global.tmp\n")
551-
await Bun.write(config, `[core]\n\texcludesFile = ${global}\n`)
551+
await Bun.write(config, `[core]\n\texcludesFile = ${global.replaceAll("\\", "/")}\n`)
552552

553553
const prev = process.env.GIT_CONFIG_GLOBAL
554554
process.env.GIT_CONFIG_GLOBAL = config

0 commit comments

Comments
 (0)