diff options
| author | Dax Raad <[email protected]> | 2025-07-24 09:25:04 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-07-24 11:08:20 -0400 |
| commit | a11999137faaa9d4cfba8e66a8a5fcdc0dc91406 (patch) | |
| tree | 465597f4c80704d03d6c6d68ddc20e174fb9d95e /packages | |
| parent | a16554d4458036b1a5affadf30fd4411696099a3 (diff) | |
| download | opencode-a11999137faaa9d4cfba8e66a8a5fcdc0dc91406.tar.gz opencode-a11999137faaa9d4cfba8e66a8a5fcdc0dc91406.zip | |
disable snapshots
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/opencode/src/snapshot/index.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/opencode/src/snapshot/index.ts b/packages/opencode/src/snapshot/index.ts index d76f0d5b4..72ec53cd4 100644 --- a/packages/opencode/src/snapshot/index.ts +++ b/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, |
