diff options
-rw-r--r-- | LibGit2Sharp.Tests/CloneFixture.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/LibGit2Sharp.Tests/CloneFixture.cs b/LibGit2Sharp.Tests/CloneFixture.cs index 7a644507..f287cde5 100644 --- a/LibGit2Sharp.Tests/CloneFixture.cs +++ b/LibGit2Sharp.Tests/CloneFixture.cs @@ -69,6 +69,15 @@ namespace LibGit2Sharp.Tests AssertLocalClone(BareTestRepoPath); } + [Fact] + public void CanCloneALocalRepositoryFromANewlyCreatedTemporaryPath() + { + var path = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString().Substring(0, 8)); + SelfCleaningDirectory scd = BuildSelfCleaningDirectory(path); + Repository.Init(scd.DirectoryPath); + AssertLocalClone(scd.DirectoryPath, isCloningAnEmptyRepository: true); + } + [Theory] [InlineData("http://github.com/libgit2/TestGitRepository")] [InlineData("https://github.com/libgit2/TestGitRepository")] |