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) ─────────────────────────