Skip to content

Commit ed9bf8b

Browse files
authored
fix: re-enable snapshot in acp (anomalyco#14918)
1 parent f359d29 commit ed9bf8b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/opencode/src/snapshot/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export namespace Snapshot {
2929
}
3030

3131
export async function cleanup() {
32-
if (Instance.project.vcs !== "git" || Flag.OPENCODE_CLIENT === "acp") return
32+
if (Instance.project.vcs !== "git") return
3333
const cfg = await Config.get()
3434
if (cfg.snapshot === false) return
3535
const git = gitdir()
@@ -54,7 +54,7 @@ export namespace Snapshot {
5454
}
5555

5656
export async function track() {
57-
if (Instance.project.vcs !== "git" || Flag.OPENCODE_CLIENT === "acp") return
57+
if (Instance.project.vcs !== "git") return
5858
const cfg = await Config.get()
5959
if (cfg.snapshot === false) return
6060
const git = gitdir()

0 commit comments

Comments
 (0)