Skip to content

Commit 5f65373

Browse files
committed
Add BaseFixture.SubmoduleTestRepoWorkingDirPath
1 parent 21696b8 commit 5f65373

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ static BaseFixture()
2222
public static string StandardTestRepoWorkingDirPath { get; private set; }
2323
public static string StandardTestRepoPath { get; private set; }
2424
public static string MergedTestRepoWorkingDirPath { get; private set; }
25+
public static string SubmoduleTestRepoWorkingDirPath { get; private set; }
2526
public static DirectoryInfo ResourcesDirectory { get; private set; }
2627

2728
public static readonly Signature DummySignature = new Signature("Author N. Ame", "[email protected]", TruncateSubSeconds(DateTimeOffset.Now));
@@ -50,6 +51,7 @@ private static void SetUpTestEnvironment()
5051
StandardTestRepoWorkingDirPath = Path.Combine(ResourcesDirectory.FullName, "testrepo_wd");
5152
StandardTestRepoPath = Path.Combine(StandardTestRepoWorkingDirPath, ".git");
5253
MergedTestRepoWorkingDirPath = Path.Combine(ResourcesDirectory.FullName, "mergedrepo_wd");
54+
SubmoduleTestRepoWorkingDirPath = Path.Combine(ResourcesDirectory.FullName, "submodule_wd");
5355
}
5456

5557
protected void CreateCorruptedDeadBeefHead(string repoPath)
@@ -81,9 +83,8 @@ protected string CloneStandardTestRepo()
8183

8284
public string CloneSubmoduleTestRepo()
8385
{
84-
var submodule = Path.Combine(ResourcesDirectory.FullName, "submodule_wd");
8586
var submoduleTarget = Path.Combine(ResourcesDirectory.FullName, "submodule_target_wd");
86-
return Clone(submodule, submoduleTarget);
87+
return Clone(SubmoduleTestRepoWorkingDirPath, submoduleTarget);
8788
}
8889

8990
private string Clone(string sourceDirectoryPath, params string[] additionalSourcePaths)

0 commit comments

Comments
 (0)