mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -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)
|
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);
|
var group = FindOrCreateGroupRecursive(Preference.Instance.RepositoryNodes, relative);
|
||||||
Preference.Instance.FindOrAddNodeByRepositoryPath(f, group, false);
|
Preference.Instance.FindOrAddNodeByRepositoryPath(f, group, false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue