Skip to content

Commit 65808e5

Browse files
committed
fix: filter with local branch should not include invalid upstream (gone) (#1308)
1 parent cf7b61d commit 65808e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ViewModels/Repository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,7 @@ public void SetBranchFilterMode(BranchTreeNode node, Models.FilterMode mode, boo
926926
if (!changed)
927927
return;
928928

929-
if (isLocal && !string.IsNullOrEmpty(branch.Upstream))
929+
if (isLocal && !string.IsNullOrEmpty(branch.Upstream) && !branch.IsUpstreamGone)
930930
_settings.UpdateHistoriesFilter(branch.Upstream, Models.FilterType.RemoteBranch, mode);
931931
}
932932
else

0 commit comments

Comments
 (0)