diff options
author | Jameson Miller <jamill@microsoft.com> | 2015-04-07 16:53:45 +0300 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2015-04-07 16:54:21 +0300 |
commit | b304c070de966c12a025a20208ee76d3026e2e08 (patch) | |
tree | aedf7c7daf7d9e38c3c31c88530396ec2467cec5 /LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs | |
parent | 2e3b534998ddefe94a772ab62584be0076418dfa (diff) |
Teach clone the ability to recurse into submodules
Add property to CloneOptions to allow clone to recurse into submodules.
Diffstat (limited to 'LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs')
-rw-r--r-- | LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs b/LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs index a7cc1a58..26a27b27 100644 --- a/LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs +++ b/LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs @@ -40,7 +40,7 @@ namespace LibGit2Sharp.Tests.TestHelpers public static string SubmoduleTestRepoWorkingDirPath { get; private set; } private static string SubmoduleTargetTestRepoWorkingDirPath { get; set; } private static string AssumeUnchangedRepoWorkingDirPath { get; set; } - private static string SubmoduleSmallTestRepoWorkingDirPath { get; set; } + public static string SubmoduleSmallTestRepoWorkingDirPath { get; set; } public static DirectoryInfo ResourcesDirectory { get; private set; } @@ -71,7 +71,7 @@ namespace LibGit2Sharp.Tests.TestHelpers SubmoduleTestRepoWorkingDirPath = Path.Combine(sourceRelativePath, "submodule_wd"); SubmoduleTargetTestRepoWorkingDirPath = Path.Combine(sourceRelativePath, "submodule_target_wd"); AssumeUnchangedRepoWorkingDirPath = Path.Combine(sourceRelativePath, "assume_unchanged_wd"); - SubmoduleSmallTestRepoWorkingDirPath = Path.Combine(ResourcesDirectory.FullName, "submodule_small_wd"); + SubmoduleSmallTestRepoWorkingDirPath = Path.Combine(sourceRelativePath, "submodule_small_wd"); } private static bool IsFileSystemCaseSensitiveInternal() @@ -159,8 +159,7 @@ namespace LibGit2Sharp.Tests.TestHelpers public string SandboxSubmoduleSmallTestRepo() { - var submoduleTarget = Path.Combine(ResourcesDirectory.FullName, "submodule_target_wd"); - var path = Sandbox(SubmoduleSmallTestRepoWorkingDirPath, submoduleTarget); + var path = Sandbox(SubmoduleSmallTestRepoWorkingDirPath, SubmoduleTargetTestRepoWorkingDirPath); Directory.CreateDirectory(Path.Combine(path, "submodule_target_wd")); return path; |