Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Meltzer <a.meltzer@criteo.com>2014-06-03 04:06:51 +0400
committernulltoken <emeric.fermas@gmail.com>2014-06-04 12:31:36 +0400
commitba1bb21052ef97edb12bf7510d8af82b1badc999 (patch)
tree9766f03138a33fd804cdd6461a413f0cc9b90498
parent3bcbe882b6ff04851c370b1cebb9b087aa2b6792 (diff)
Test cloning from a new repo in a temporary path.
-rw-r--r--LibGit2Sharp.Tests/CloneFixture.cs9
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")]