Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 0f8b2bf

Browse files
Merge pull request #268 from github-for-unity/fixes/257-more-meta-child-parsing
More sturdy fix for #257
2 parents 201e18e + ddc5baf commit 0f8b2bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/ChangesetTreeView.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ private void TreeNode(FileTreeNode node)
123123
{
124124
var parentLabel = node.Label;
125125
var childLabel = node.Children.First().Label;
126-
isFolderForMeta = childLabel.EndsWith(".meta");
126+
isFolderForMeta = childLabel.StartsWith(parentLabel) && childLabel.EndsWith(".meta");
127127
}
128128

129129
GUILayout.BeginHorizontal();

0 commit comments

Comments
 (0)