Skip to content

Commit a119991

Browse files
committed
disable snapshots
1 parent a16554d commit a119991

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/opencode/src/snapshot/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import fs from "fs/promises"
55
import { Ripgrep } from "../file/ripgrep"
66
import { Log } from "../util/log"
77
import { Global } from "../global"
8+
import { Installation } from "../installation"
89

910
export namespace Snapshot {
1011
const log = Log.create({ service: "snapshot" })
@@ -28,7 +29,7 @@ export namespace Snapshot {
2829
const app = App.info()
2930

3031
// not a git repo, check if too big to snapshot
31-
if (!app.git) {
32+
if (!app.git || !Installation.isDev()) {
3233
return
3334
const files = await Ripgrep.files({
3435
cwd: app.path.cwd,

0 commit comments

Comments
 (0)