mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-25 21:07:20 -08:00
enhance: skip scanning sub folders if current is not a git repository but has .git
subfolder/file (#728)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
d3eca59036
commit
069dc255d1
1 changed files with 3 additions and 3 deletions
|
@ -103,12 +103,12 @@ namespace SourceGit.ViewModels
|
|||
if (test.IsSuccess && !string.IsNullOrEmpty(test.StdOut))
|
||||
{
|
||||
var normalized = test.StdOut.Trim().Replace("\\", "/");
|
||||
if (!_managed.Contains(normalizedSelf))
|
||||
if (!_managed.Contains(normalized))
|
||||
outs.Add(normalized);
|
||||
}
|
||||
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if (depth < 8)
|
||||
GetUnmanagedRepositories(subdir, outs, opts, depth + 1);
|
||||
|
|
Loading…
Reference in a new issue