mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
enhance: do NOT create sub-nodes for detached HEAD
This commit is contained in:
parent
69b39dac6c
commit
bbd4012bc5
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ namespace SourceGit.ViewModels
|
|||
private void MakeBranchNode(Models.Branch branch, List<BranchTreeNode> roots, Dictionary<string, BranchTreeNode> 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()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue