We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46690f4 commit 1f28a39Copy full SHA for 1f28a39
src/ViewModels/Fetch.cs
@@ -80,7 +80,7 @@ public override async Task<bool> Sure()
80
log.Complete();
81
82
var upstream = _repo.CurrentBranch?.Upstream;
83
- if (!string.IsNullOrEmpty(upstream))
+ if (!string.IsNullOrEmpty(upstream) && _repo.CurrentBranch.TrackStatus.Ahead.Count == 0)
84
{
85
var upstreamHead = await new Commands.QueryRevisionByRefName(_repo.FullPath, upstream.Substring(13)).GetResultAsync();
86
_repo.NavigateToCommit(upstreamHead, true);
0 commit comments