fix: codegraph init

This commit is contained in:
2026-07-19 20:01:56 +02:00
parent 29d12974fd
commit 1a7d688546
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -16,7 +16,8 @@ class CodeGraphError(RuntimeError):
class CodeGraphClient:
async def prepare(self, workspace: Path) -> None:
self._exclude_index(workspace)
command = "sync" if (workspace / ".codegraph").is_dir() else "init"
index = workspace / ".codegraph" / "codegraph.db"
command = "sync" if index.is_file() else "init"
started = monotonic()
log.info(
"CodeGraph index preparation started",