File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
LibGit2Sharp.Tests/TestHelpers Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -79,13 +79,22 @@ protected string CloneStandardTestRepo()
79
79
return Clone ( StandardTestRepoWorkingDirPath ) ;
80
80
}
81
81
82
- private string Clone ( string sourceDirectoryPath )
82
+ private string Clone ( string sourceDirectoryPath , params string [ ] additionalSourcePaths )
83
83
{
84
84
var scd = BuildSelfCleaningDirectory ( ) ;
85
85
var source = new DirectoryInfo ( sourceDirectoryPath ) ;
86
86
87
87
var clonePath = Path . Combine ( scd . DirectoryPath , source . Name ) ;
88
88
DirectoryHelper . CopyFilesRecursively ( source , new DirectoryInfo ( clonePath ) ) ;
89
+
90
+ foreach ( var additionalPath in additionalSourcePaths )
91
+ {
92
+ var additional = new DirectoryInfo ( additionalPath ) ;
93
+ var targetForAdditional = Path . Combine ( scd . DirectoryPath , additional . Name ) ;
94
+
95
+ DirectoryHelper . CopyFilesRecursively ( additional , new DirectoryInfo ( targetForAdditional ) ) ;
96
+ }
97
+
89
98
return clonePath ;
90
99
}
91
100
You can’t perform that action at this time.
0 commit comments