core: prevent crash when starting in repositories without any commits yet
parent
98be75b17c
commit
85f15893bc
|
|
@ -60,7 +60,7 @@ export namespace Project {
|
|||
.toSorted(),
|
||||
)
|
||||
id = roots[0]
|
||||
Bun.file(path.join(git, "opencode")).write(id)
|
||||
if (id) Bun.file(path.join(git, "opencode")).write(id)
|
||||
}
|
||||
timer.stop()
|
||||
if (!id) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue