@@ -46,11 +46,11 @@ public override Task<bool> Sure()
46
46
47
47
Dispatcher . UIThread . Invoke ( ( ) =>
48
48
{
49
- var normalizedRoot = rootDir . FullName . Replace ( " \\ " , "/" ) . TrimEnd ( '/' ) ;
49
+ var normalizedRoot = rootDir . FullName . Replace ( ' \\ ' , '/' ) . TrimEnd ( '/' ) ;
50
50
51
51
foreach ( var f in found )
52
52
{
53
- var parent = new DirectoryInfo ( f . Path ) . Parent ! . FullName . Replace ( " \\ " , "/" ) . TrimEnd ( '/' ) ;
53
+ var parent = new DirectoryInfo ( f . Path ) . Parent ! . FullName . Replace ( ' \\ ' , '/' ) . TrimEnd ( '/' ) ;
54
54
if ( parent . Equals ( normalizedRoot , StringComparison . Ordinal ) )
55
55
{
56
56
Preferences . Instance . FindOrAddNodeByRepositoryPath ( f . Path , null , false ) ;
@@ -93,7 +93,7 @@ private void GetUnmanagedRepositories(DirectoryInfo dir, List<FoundRepository> o
93
93
94
94
CallUIThread ( ( ) => ProgressDescription = $ "Scanning { subdir . FullName } ...") ;
95
95
96
- var normalizedSelf = subdir . FullName . Replace ( " \\ " , "/" ) . TrimEnd ( '/' ) ;
96
+ var normalizedSelf = subdir . FullName . Replace ( ' \\ ' , '/' ) . TrimEnd ( '/' ) ;
97
97
if ( _managed . Contains ( normalizedSelf ) )
98
98
continue ;
99
99
@@ -103,7 +103,7 @@ private void GetUnmanagedRepositories(DirectoryInfo dir, List<FoundRepository> o
103
103
var test = new Commands . QueryRepositoryRootPath ( subdir . FullName ) . ReadToEnd ( ) ;
104
104
if ( test . IsSuccess && ! string . IsNullOrEmpty ( test . StdOut ) )
105
105
{
106
- var normalized = test . StdOut . Trim ( ) . Replace ( " \\ " , "/" ) . TrimEnd ( '/' ) ;
106
+ var normalized = test . StdOut . Trim ( ) . Replace ( ' \\ ' , '/' ) . TrimEnd ( '/' ) ;
107
107
if ( ! _managed . Contains ( normalized ) )
108
108
outs . Add ( new FoundRepository ( normalized , false ) ) ;
109
109
}
0 commit comments