@@ -439,18 +439,18 @@ public void CanSetAndGetSearchPath()
439
439
string systemPath = Path . Combine ( Constants . TemporaryReposPath , Path . GetRandomFileName ( ) ) ;
440
440
string xdgPath = Path . Combine ( Constants . TemporaryReposPath , Path . GetRandomFileName ( ) ) ;
441
441
442
- GlobalSettings . SetConfigSearchPath ( ConfigurationLevel . Global , globalPath ) ;
443
- GlobalSettings . SetConfigSearchPath ( ConfigurationLevel . System , systemPath ) ;
444
- GlobalSettings . SetConfigSearchPath ( ConfigurationLevel . Xdg , xdgPath ) ;
442
+ GlobalSettings . SetConfigSearchPaths ( ConfigurationLevel . Global , globalPath ) ;
443
+ GlobalSettings . SetConfigSearchPaths ( ConfigurationLevel . System , systemPath ) ;
444
+ GlobalSettings . SetConfigSearchPaths ( ConfigurationLevel . Xdg , xdgPath ) ;
445
445
446
446
Assert . Equal ( globalPath , GlobalSettings . GetConfigSearchPaths ( ConfigurationLevel . Global ) . Single ( ) ) ;
447
447
Assert . Equal ( systemPath , GlobalSettings . GetConfigSearchPaths ( ConfigurationLevel . System ) . Single ( ) ) ;
448
448
Assert . Equal ( xdgPath , GlobalSettings . GetConfigSearchPaths ( ConfigurationLevel . Xdg ) . Single ( ) ) ;
449
449
450
450
// reset the search paths to their defaults
451
- GlobalSettings . SetConfigSearchPath ( ConfigurationLevel . Global , null ) ;
452
- GlobalSettings . SetConfigSearchPath ( ConfigurationLevel . System , null ) ;
453
- GlobalSettings . SetConfigSearchPath ( ConfigurationLevel . Xdg , null ) ;
451
+ GlobalSettings . SetConfigSearchPaths ( ConfigurationLevel . Global , null ) ;
452
+ GlobalSettings . SetConfigSearchPaths ( ConfigurationLevel . System , null ) ;
453
+ GlobalSettings . SetConfigSearchPaths ( ConfigurationLevel . Xdg , null ) ;
454
454
}
455
455
456
456
[ Fact ]
@@ -499,7 +499,7 @@ public void CanRedirectConfigAccess()
499
499
Touch ( scd2 . RootedDirectoryPath , ".gitconfig" ) ;
500
500
501
501
// redirect global access to the first path
502
- GlobalSettings . SetConfigSearchPath ( ConfigurationLevel . Global , scd1 . RootedDirectoryPath ) ;
502
+ GlobalSettings . SetConfigSearchPaths ( ConfigurationLevel . Global , scd1 . RootedDirectoryPath ) ;
503
503
504
504
// set a value in the first config
505
505
using ( var config = Configuration . BuildFrom ( null ) )
@@ -509,7 +509,7 @@ public void CanRedirectConfigAccess()
509
509
}
510
510
511
511
// redirect global config access to path2
512
- GlobalSettings . SetConfigSearchPath ( ConfigurationLevel . Global , scd2 . RootedDirectoryPath ) ;
512
+ GlobalSettings . SetConfigSearchPaths ( ConfigurationLevel . Global , scd2 . RootedDirectoryPath ) ;
513
513
514
514
// if the redirect succeeds, the value set in the prior config should not be visible
515
515
using ( var config = Configuration . BuildFrom ( null ) )
@@ -518,7 +518,7 @@ public void CanRedirectConfigAccess()
518
518
}
519
519
520
520
// reset the search path to the default
521
- GlobalSettings . SetConfigSearchPath ( ConfigurationLevel . Global , null ) ;
521
+ GlobalSettings . SetConfigSearchPaths ( ConfigurationLevel . Global , null ) ;
522
522
}
523
523
}
524
524
}
0 commit comments