mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-24 03:04:21 +01:00
core: prevent crash when starting in repositories without any commits yet
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user