Sfoglia il codice sorgente

ignore: read deleted files

Dax Raad 7 mesi fa
parent
commit
9e75e3ed18
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      packages/opencode/src/file/index.ts

+ 1 - 0
packages/opencode/src/file/index.ts

@@ -102,6 +102,7 @@ export namespace File {
     const full = path.join(app.path.cwd, file)
     const full = path.join(app.path.cwd, file)
     const content = await Bun.file(full)
     const content = await Bun.file(full)
       .text()
       .text()
+      .catch(() => "")
       .then((x) => x.trim())
       .then((x) => x.trim())
     if (app.git) {
     if (app.git) {
       const rel = path.relative(app.path.root, full)
       const rel = path.relative(app.path.root, full)