diff options
| author | Luke Parker <[email protected]> | 2026-02-24 21:40:38 +1000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-02-24 21:40:38 +1000 |
| commit | 79254c10201a3978ac72ef2a047bb4070efdc41d (patch) | |
| tree | 827f9bdef3bd9a2acf625f8beb2af295c3c40f81 /packages | |
| parent | ef7f222d80d1b5d2f3c18e86efba99a1f308c1f9 (diff) | |
| download | opencode-79254c10201a3978ac72ef2a047bb4070efdc41d.tar.gz opencode-79254c10201a3978ac72ef2a047bb4070efdc41d.zip | |
fix(test): normalize git excludesFile path for Windows (#14893)
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/opencode/test/snapshot/snapshot.test.ts | 2 |
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 |
