fix: re-enable snapshot in acp (#14918)

pull/15848/head
Noam Bressler 2026-03-11 23:18:40 +02:00 committed by GitHub
parent a1cda29012
commit 440405dbdd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

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