Skip to content
Snippets Groups Projects
Commit d19af328 authored by Stanley Goldman's avatar Stanley Goldman
Browse files

Checking the common parent directory

parent 47cc43f8
No related branches found
No related tags found
No related merge requests found
......@@ -152,7 +152,8 @@ namespace GitHub.Unity
// Build tree structure
tree = new FileTreeNode(Utility.FindCommonPath(entries.Select(e => e.Path)));
var commonParentDirectory = Utility.FindCommonPath(entries.Select(e => e.Path.ToNPath().Parent.ToString()));
tree = new FileTreeNode(commonParentDirectory);
tree.RepositoryPath = tree.Path;
for (var index = 0; index < entries.Count; index++)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment