From f12cd7f6af408fa19de305f5e1f00dd94ebde1b5 Mon Sep 17 00:00:00 2001 From: Void Freud <246163318+voidfreud@users.noreply.github.com> Date: Mon, 27 Jul 2026 20:45:34 +0300 Subject: [PATCH] fix: keep registry reads lock-free --- gitnexus/src/storage/repo-manager.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gitnexus/src/storage/repo-manager.ts b/gitnexus/src/storage/repo-manager.ts index 87b8ba8ef1..00b4d4072a 100644 --- a/gitnexus/src/storage/repo-manager.ts +++ b/gitnexus/src/storage/repo-manager.ts @@ -1943,7 +1943,10 @@ const listRegisteredReposUnlocked = async (opts?: { export const listRegisteredRepos = async (opts?: { validate?: boolean; -}): Promise => withRegistryLock(() => listRegisteredReposUnlocked(opts)); +}): Promise => + opts?.validate + ? withRegistryLock(() => listRegisteredReposUnlocked(opts)) + : listRegisteredReposUnlocked(opts); // ─── Global CLI Config (~/.gitnexus/config.json) ─────────────────────────