Skip to content

Commit da2a8d3

Browse files
committed
Add BaseFixture.SubmoduleTestRepoWorkingDirPath
1 parent 56eb34b commit da2a8d3

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", "him@there.com", 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)
@@ -86,9 +88,8 @@ protected string CloneMergedTestRepo()
8688

8789
public string CloneSubmoduleTestRepo()
8890
{
89-
var submodule = Path.Combine(ResourcesDirectory.FullName, "submodule_wd");
9091
var submoduleTarget = Path.Combine(ResourcesDirectory.FullName, "submodule_target_wd");
91-
return Clone(submodule, submoduleTarget);
92+
return Clone(SubmoduleTestRepoWorkingDirPath, submoduleTarget);
9293
}
9394

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

0 commit comments

Comments
 (0)