fix<Dashboard>: when the remote branch name contains a folder '/', the belonging remote is sometimes incorrect

This commit is contained in:
Jai 2021-07-14 11:18:52 +00:00 committed by leo
parent 586728eea1
commit a0c89362be

View file

@ -213,7 +213,7 @@ namespace SourceGit.Views.Widgets {
MakeBranchNode(b, localBranches, folders, states, "locals/"); MakeBranchNode(b, localBranches, folders, states, "locals/");
} else { } else {
var r = remoteBranches.Find(x => x.Name == b.Remote); var r = remoteBranches.Find(x => x.Name == b.Remote);
if (r != null) MakeBranchNode(b, r.Children, folders, states, "remotes/"); if (r != null) MakeBranchNode(b, r.Children, folders, states, $"remotes/{b.Remote}/");
} }
} }