mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-22 00:24:46 +00:00
fix: re-enable snapshot in acp (#14918)
This commit is contained in:
@@ -29,7 +29,7 @@ export namespace Snapshot {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function cleanup() {
|
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()
|
const cfg = await Config.get()
|
||||||
if (cfg.snapshot === false) return
|
if (cfg.snapshot === false) return
|
||||||
const git = gitdir()
|
const git = gitdir()
|
||||||
@@ -54,7 +54,7 @@ export namespace Snapshot {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function track() {
|
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()
|
const cfg = await Config.get()
|
||||||
if (cfg.snapshot === false) return
|
if (cfg.snapshot === false) return
|
||||||
const git = gitdir()
|
const git = gitdir()
|
||||||
|
|||||||
Reference in New Issue
Block a user