Browse Source

fix logic for suprpessing snapshots in big directories

Dax Raad 7 months ago
parent
commit
b5c85d3806
1 changed files with 1 additions and 1 deletions
  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)