@@ -417,18 +417,18 @@ public void CanSetAndGetSearchPath()
417
417
string systemPath = Path . Combine ( Constants . TemporaryReposPath , Path . GetRandomFileName ( ) ) ;
418
418
string xdgPath = Path . Combine ( Constants . TemporaryReposPath , Path . GetRandomFileName ( ) ) ;
419
419
420
- GlobalSettings . SetConfigSearchPath ( ConfigurationLevel . Global , globalPath ) ;
421
- GlobalSettings . SetConfigSearchPath ( ConfigurationLevel . System , systemPath ) ;
422
- GlobalSettings . SetConfigSearchPath ( ConfigurationLevel . Xdg , xdgPath ) ;
420
+ GlobalSettings . SetConfigSearchPaths ( ConfigurationLevel . Global , globalPath ) ;
421
+ GlobalSettings . SetConfigSearchPaths ( ConfigurationLevel . System , systemPath ) ;
422
+ GlobalSettings . SetConfigSearchPaths ( ConfigurationLevel . Xdg , xdgPath ) ;
423
423
424
424
Assert . Equal ( globalPath , GlobalSettings . GetConfigSearchPaths ( ConfigurationLevel . Global ) . Single ( ) ) ;
425
425
Assert . Equal ( systemPath , GlobalSettings . GetConfigSearchPaths ( ConfigurationLevel . System ) . Single ( ) ) ;
426
426
Assert . Equal ( xdgPath , GlobalSettings . GetConfigSearchPaths ( ConfigurationLevel . Xdg ) . Single ( ) ) ;
427
427
428
428
// reset the search paths to their defaults
429
- GlobalSettings . SetConfigSearchPath ( ConfigurationLevel . Global , null ) ;
430
- GlobalSettings . SetConfigSearchPath ( ConfigurationLevel . System , null ) ;
431
- GlobalSettings . SetConfigSearchPath ( ConfigurationLevel . Xdg , null ) ;
429
+ GlobalSettings . SetConfigSearchPaths ( ConfigurationLevel . Global , null ) ;
430
+ GlobalSettings . SetConfigSearchPaths ( ConfigurationLevel . System , null ) ;
431
+ GlobalSettings . SetConfigSearchPaths ( ConfigurationLevel . Xdg , null ) ;
432
432
}
433
433
434
434
[ Fact ]
@@ -477,7 +477,7 @@ public void CanRedirectConfigAccess()
477
477
Touch ( scd2 . RootedDirectoryPath , ".gitconfig" ) ;
478
478
479
479
// redirect global access to the first path
480
- GlobalSettings . SetConfigSearchPath ( ConfigurationLevel . Global , scd1 . RootedDirectoryPath ) ;
480
+ GlobalSettings . SetConfigSearchPaths ( ConfigurationLevel . Global , scd1 . RootedDirectoryPath ) ;
481
481
482
482
// set a value in the first config
483
483
using ( var config = Configuration . BuildFrom ( null ) )
@@ -487,7 +487,7 @@ public void CanRedirectConfigAccess()
487
487
}
488
488
489
489
// redirect global config access to path2
490
- GlobalSettings . SetConfigSearchPath ( ConfigurationLevel . Global , scd2 . RootedDirectoryPath ) ;
490
+ GlobalSettings . SetConfigSearchPaths ( ConfigurationLevel . Global , scd2 . RootedDirectoryPath ) ;
491
491
492
492
// if the redirect succeeds, the value set in the prior config should not be visible
493
493
using ( var config = Configuration . BuildFrom ( null ) )
@@ -496,7 +496,7 @@ public void CanRedirectConfigAccess()
496
496
}
497
497
498
498
// reset the search path to the default
499
- GlobalSettings . SetConfigSearchPath ( ConfigurationLevel . Global , null ) ;
499
+ GlobalSettings . SetConfigSearchPaths ( ConfigurationLevel . Global , null ) ;
500
500
}
501
501
}
502
502
}
0 commit comments