mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-24 03:04:21 +01:00
fix: worktree cmd (#2870)
This commit is contained in:
@@ -62,14 +62,12 @@ export namespace Project {
|
|||||||
await Storage.write<Info>(["project", "global"], project)
|
await Storage.write<Info>(["project", "global"], project)
|
||||||
return project
|
return project
|
||||||
}
|
}
|
||||||
worktree = path.dirname(
|
worktree = await $`git rev-parse --path-format=absolute --show-toplevel`
|
||||||
await $`git rev-parse --path-format=absolute --git-common-dir`
|
.quiet()
|
||||||
.quiet()
|
.nothrow()
|
||||||
.nothrow()
|
.cwd(worktree)
|
||||||
.cwd(worktree)
|
.text()
|
||||||
.text()
|
.then((x) => x.trim())
|
||||||
.then((x) => x.trim()),
|
|
||||||
)
|
|
||||||
const project: Info = {
|
const project: Info = {
|
||||||
id,
|
id,
|
||||||
worktree,
|
worktree,
|
||||||
|
|||||||
Reference in New Issue
Block a user