Sfoglia il codice sorgente

fix logic for suprpessing snapshots in big directories

Dax Raad 1 anno fa
parent
commit
b5c85d3806
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      packages/opencode/src/snapshot/index.ts

+ 1 - 1
packages/opencode/src/snapshot/index.ts

@@ -19,7 +19,7 @@ export namespace Snapshot {
         limit: 1000,
         limit: 1000,
       })
       })
       log.info("found files", { count: files.length })
       log.info("found files", { count: files.length })
-      if (files.length > 1000) return
+      if (files.length >= 1000) return
     }
     }
 
 
     const git = gitdir(sessionID)
     const git = gitdir(sessionID)