From 8d5102dc90e537b8b030f8f3a047660969317a3d Mon Sep 17 00:00:00 2001 From: Chris Scott <99081550+chriswritescode-dev@users.noreply.github.com> Date: Fri, 24 Jul 2026 09:17:59 -0400 Subject: [PATCH] fix(source-control): invalidate branches cache after fetch and pull --- frontend/src/hooks/useGit.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/hooks/useGit.ts b/frontend/src/hooks/useGit.ts index a5ef3015..7eb13aa8 100644 --- a/frontend/src/hooks/useGit.ts +++ b/frontend/src/hooks/useGit.ts @@ -22,7 +22,7 @@ export function useGit(repoId: number | undefined, onError?: (error: unknown) => }, onSuccess: (data) => { if (repoId) setRepoGitStatusCaches(queryClient, repoId, data) - invalidateRepoGitCaches(queryClient, repoId, { invalidateStatus: false, invalidateRepoMeta: false }) + invalidateRepoGitCaches(queryClient, repoId, { invalidateStatus: false }) showToast.success('Fetch completed') }, onError: handleError, @@ -35,7 +35,7 @@ export function useGit(repoId: number | undefined, onError?: (error: unknown) => }, onSuccess: (data) => { if (repoId) setRepoGitStatusCaches(queryClient, repoId, data) - invalidateRepoGitCaches(queryClient, repoId, { invalidateStatus: false, invalidateRepoMeta: false }) + invalidateRepoGitCaches(queryClient, repoId, { invalidateStatus: false }) showToast.success('Pull completed') }, onError: handleError,