From 2ed5348cf51406870499b992a3e917410b9f0078 Mon Sep 17 00:00:00 2001 From: Haileyesus Date: Mon, 23 Feb 2026 10:45:16 +0300 Subject: [PATCH] fix(git-panel): show fetch button when remote is diverged --- src/components/git-panel/view/GitPanelHeader.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/git-panel/view/GitPanelHeader.tsx b/src/components/git-panel/view/GitPanelHeader.tsx index 127612b..8a2537c 100644 --- a/src/components/git-panel/view/GitPanelHeader.tsx +++ b/src/components/git-panel/view/GitPanelHeader.tsx @@ -62,7 +62,7 @@ export default function GitPanelHeader({ const aheadCount = remoteStatus?.ahead || 0; const behindCount = remoteStatus?.behind || 0; const remoteName = remoteStatus?.remoteName || 'remote'; - const shouldShowFetchButton = aheadCount > 0 || (behindCount > 0 && aheadCount > 0); + const shouldShowFetchButton = aheadCount > 0 && behindCount > 0; const requestPullConfirmation = () => { onRequestConfirmation({