Explorar el Código

fix(test): normalize git excludesFile path for Windows (#14893)

Luke Parker hace 1 mes
padre
commit
79254c1020
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/opencode/test/snapshot/snapshot.test.ts

+ 1 - 1
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 global = `${tmp.path}/global.ignore`
       const config = `${tmp.path}/global.gitconfig`
       const config = `${tmp.path}/global.gitconfig`
       await Bun.write(global, "global.tmp\n")
       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
       const prev = process.env.GIT_CONFIG_GLOBAL
       process.env.GIT_CONFIG_GLOBAL = config
       process.env.GIT_CONFIG_GLOBAL = config