mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-19 16:40:48 +00:00
fix undo/redo when opencode is run in nested folders
This commit is contained in:
parent
0ca10ec2f5
commit
7d095d19f6
1 changed files with 2 additions and 2 deletions
|
|
@ -43,7 +43,7 @@ export namespace Snapshot {
|
|||
}
|
||||
await $`git --git-dir ${git} add .`.quiet().cwd(app.path.cwd).nothrow()
|
||||
const hash = await $`git --git-dir ${git} write-tree`.quiet().cwd(app.path.cwd).nothrow().text()
|
||||
log.info("tracking", { hash })
|
||||
log.info("tracking", { hash, cwd: app.path.cwd, git })
|
||||
return hash.trim()
|
||||
}
|
||||
|
||||
|
|
@ -65,7 +65,7 @@ export namespace Snapshot {
|
|||
.split("\n")
|
||||
.map((x) => x.trim())
|
||||
.filter(Boolean)
|
||||
.map((x) => path.join(app.path.cwd, x)),
|
||||
.map((x) => path.join(app.path.root, x)),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue