fix: keep registry reads lock-free

This commit is contained in:
Void Freud 2026-07-27 20:45:34 +03:00
parent bf42c43419
commit f12cd7f6af

View file

@ -1943,7 +1943,10 @@ const listRegisteredReposUnlocked = async (opts?: {
export const listRegisteredRepos = async (opts?: {
validate?: boolean;
}): Promise<RegistryEntry[]> => withRegistryLock(() => listRegisteredReposUnlocked(opts));
}): Promise<RegistryEntry[]> =>
opts?.validate
? withRegistryLock(() => listRegisteredReposUnlocked(opts))
: listRegisteredReposUnlocked(opts);
// ─── Global CLI Config (~/.gitnexus/config.json) ─────────────────────────