fix: drop absolute flag to resolve issues when using older git versions

This commit is contained in:
Aiden Cline 2025-12-01 00:23:19 -06:00
parent 560a610384
commit f6262460ff

View file

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