fix: workree cmd

This commit is contained in:
rekram1-node 2025-09-29 22:15:50 -05:00
parent 7447460b5a
commit 4012d97a41

View file

@ -62,14 +62,12 @@ export namespace Project {
await Storage.write<Info>(["project", "global"], project)
return project
}
worktree = path.dirname(
await $`git rev-parse --path-format=absolute --git-common-dir`
.quiet()
.nothrow()
.cwd(worktree)
.text()
.then((x) => x.trim()),
)
worktree = await $`git rev-parse --path-format=absolute --show-toplevel`
.quiet()
.nothrow()
.cwd(worktree)
.text()
.then((x) => x.trim())
const project: Info = {
id,
worktree,