8000 Test cloning from a new repo in a temporary path. · GiTechLab/libgit2sharp@ba1bb21 · GitHub
[go: up one dir, main page]

Skip to content

Commit ba1bb21

Browse files
Albert Meltzernulltoken
Albert Meltzer
authored andcommitted
Test cloning from a new repo in a temporary path.
1 parent 3bcbe88 commit ba1bb21

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

LibGit2Sharp.Tests/CloneFixture.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,15 @@ public void CanCloneALocalRepositoryFromAStandardPath()
6969
AssertLocalClone(BareTestRepoPath);
7070
}
7171

72+
[Fact]
73+
public void CanCloneALocalRepositoryFromANewlyCreatedTemporaryPath()
74+
{
75+
var path = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString().Substring(0, 8));
76+
SelfCleaningDirectory scd = BuildSelfCleaningDirectory(path);
77+
Repository.Init(scd.DirectoryPath);
78+
AssertLocalClone(scd.DirectoryPath, isCloningAnEmptyRepository: true);
79+
}
80+
7281
[Theory]
7382
[InlineData("http://github.com/libgit2/TestGitRepository")]
7483
[InlineData("https://github.com/libgit2/TestGitRepository")]

0 commit comments

Comments
 (0)
0