diff --git a/src/ViewModels/BranchTreeNode.cs b/src/ViewModels/BranchTreeNode.cs index 71f96a90..e3e65da0 100644 --- a/src/ViewModels/BranchTreeNode.cs +++ b/src/ViewModels/BranchTreeNode.cs @@ -120,7 +120,7 @@ namespace SourceGit.ViewModels private void MakeBranchNode(Models.Branch branch, List roots, Dictionary folders, string prefix, bool isFiltered, bool bForceExpanded) { var sepIdx = branch.Name.IndexOf('/', StringComparison.Ordinal); - if (sepIdx == -1) + if (sepIdx == -1 || branch.IsDetachedHead) { roots.Add(new BranchTreeNode() {