fix: filter with local branch should not include invalid upstream (gone) (#1308)

This commit is contained in:
leo 2025-05-13 17:59:51 +08:00
parent cf7b61dd71
commit 65808e5f58
No known key found for this signature in database

View file

@ -926,7 +926,7 @@ namespace SourceGit.ViewModels
if (!changed)
return;
if (isLocal && !string.IsNullOrEmpty(branch.Upstream))
if (isLocal && !string.IsNullOrEmpty(branch.Upstream) && !branch.IsUpstreamGone)
_settings.UpdateHistoriesFilter(branch.Upstream, Models.FilterType.RemoteBranch, mode);
}
else