From 1f28a390641f0e406ba04ada2bf8dfb47ba8eef4 Mon Sep 17 00:00:00 2001 From: Nathan Baulch Date: Tue, 15 Jul 2025 14:13:02 +1000 Subject: [PATCH] enhance: only navigate to upstream if current not ahead post-fetch --- src/ViewModels/Fetch.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ViewModels/Fetch.cs b/src/ViewModels/Fetch.cs index 0930e7773..4eecffd62 100644 --- a/src/ViewModels/Fetch.cs +++ b/src/ViewModels/Fetch.cs @@ -80,7 +80,7 @@ public override async Task Sure() log.Complete(); var upstream = _repo.CurrentBranch?.Upstream; - if (!string.IsNullOrEmpty(upstream)) + if (!string.IsNullOrEmpty(upstream) && _repo.CurrentBranch.TrackStatus.Ahead.Count == 0) { var upstreamHead = await new Commands.QueryRevisionByRefName(_repo.FullPath, upstream.Substring(13)).GetResultAsync(); _repo.NavigateToCommit(upstreamHead, true);