diff options
author | Albert Meltzer <a.meltzer@criteo.com> | 2014-06-03 04:06:51 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2014-06-04 12:31:36 +0400 |
commit | ba1bb21052ef97edb12bf7510d8af82b1badc999 (patch) | |
tree | 9766f03138a33fd804cdd6461a413f0cc9b90498 | |
parent | 3bcbe882b6ff04851c370b1cebb9b087aa2b6792 (diff) |
Test cloning from a new repo in a temporary path.
-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")] |