diff --git a/LibGit2Sharp.Tests/CloneFixture.cs b/LibGit2Sharp.Tests/CloneFixture.cs index 2ffb5fe19..b647d8753 100644 --- a/LibGit2Sharp.Tests/CloneFixture.cs +++ b/LibGit2Sharp.Tests/CloneFixture.cs @@ -69,6 +69,15 @@ public void CanCloneALocalRepositoryFromAStandardPath() 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); + } + [Theory] [InlineData("http://github.com/libgit2/TestGitRepository")] [InlineData("https://github.com/libgit2/TestGitRepository")]