summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--packages/opencode/src/snapshot/index.ts3
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,