Browse Source

disable snapshots

Dax Raad 7 months ago
parent
commit
a11999137f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      packages/opencode/src/snapshot/index.ts

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

@@ -5,6 +5,7 @@ import fs from "fs/promises"
 import { Ripgrep } from "../file/ripgrep"
 import { Log } from "../util/log"
 import { Global } from "../global"
+import { Installation } from "../installation"
 
 export namespace Snapshot {
   const log = Log.create({ service: "snapshot" })
@@ -28,7 +29,7 @@ export namespace Snapshot {
     const app = App.info()
 
     // not a git repo, check if too big to snapshot
-    if (!app.git) {
+    if (!app.git || !Installation.isDev()) {
       return
       const files = await Ripgrep.files({
         cwd: app.path.cwd,