mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
fix: drop absolute flag to resolve issues when using older git versions
This commit is contained in:
parent
560a610384
commit
f6262460ff
1 changed files with 4 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue