mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -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,11 +103,11 @@ 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;
|
||||
}
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
if (depth < 8)
|
||||
|
|
Loading…
Reference in a new issue