mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
fix: can not create subgroups (#427)
This commit is contained in:
parent
bb749f225d
commit
089f24b0d2
1 changed files with 2 additions and 1 deletions
|
@ -46,7 +46,8 @@ namespace SourceGit.ViewModels
|
|||
|
||||
foreach (var f in founded)
|
||||
{
|
||||
var relative = Path.GetDirectoryName(f).Substring(prefixLen);
|
||||
var fullpath = new DirectoryInfo(f);
|
||||
var relative = fullpath.Parent!.FullName.Replace("\\", "/").Substring(prefixLen);
|
||||
var group = FindOrCreateGroupRecursive(Preference.Instance.RepositoryNodes, relative);
|
||||
Preference.Instance.FindOrAddNodeByRepositoryPath(f, group, false);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue