fix: codegraph init
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user