Skip to content
Snippets Groups Projects
Commit 891b7040 authored by Andreia Gaita's avatar Andreia Gaita
Browse files

File paths in git are always slash forward

parent e0a2d5e8
No related branches found
No related tags found
Loading
...@@ -98,7 +98,7 @@ namespace GitHub.Unity ...@@ -98,7 +98,7 @@ namespace GitHub.Unity
// TODO: In stead of completely rebuilding the tree structure, figure out a way to migrate open/closed states from the old tree to the new // TODO: In stead of completely rebuilding the tree structure, figure out a way to migrate open/closed states from the old tree to the new
// Build tree structure // Build tree structure
tree = new FileTreeNode(Utility.FindCommonPath("" + Path.DirectorySeparatorChar, entries.Select(e => e.Path))); tree = new FileTreeNode(Utility.FindCommonPath("/", entries.Select(e => e.Path)));
tree.RepositoryPath = tree.Path; tree.RepositoryPath = tree.Path;
for (var index = 0; index < entries.Count; index++) for (var index = 0; index < entries.Count; index++)
{ {
...@@ -189,7 +189,7 @@ namespace GitHub.Unity ...@@ -189,7 +189,7 @@ namespace GitHub.Unity
parent.Open = !foldedTreeEntries.Contains(parent.RepositoryPath); parent.Open = !foldedTreeEntries.Contains(parent.RepositoryPath);
// Is this node inside a folder? // Is this node inside a folder?
var index = node.Label.IndexOf(Path.DirectorySeparatorChar); var index = node.Label.IndexOf("/");
if (index > 0) if (index > 0)
{ {
// Figure out what the root folder is and chop it from the path // Figure out what the root folder is and chop it from the path
......
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