mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-28 23:54:59 +00:00
fix: ensure upstream branch exists before updating filter
This commit is contained in:
parent
cf7b61dd71
commit
67b292ad86
1 changed files with 5 additions and 1 deletions
|
@ -927,7 +927,11 @@ namespace SourceGit.ViewModels
|
|||
return;
|
||||
|
||||
if (isLocal && !string.IsNullOrEmpty(branch.Upstream))
|
||||
_settings.UpdateHistoriesFilter(branch.Upstream, Models.FilterType.RemoteBranch, mode);
|
||||
{
|
||||
var upstreamNode = FindBranchNode(_remoteBranchTrees, branch.Upstream);
|
||||
if (upstreamNode != null)
|
||||
_settings.UpdateHistoriesFilter(branch.Upstream, Models.FilterType.RemoteBranch, mode);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue