10000 Clone: remove obsolete test for pathless URLs · JonathanDigby1/libgit2sharp@64ab971 · GitHub
[go: up one dir, main page]

Skip to content

Commit 64ab971

Browse files
committed
Clone: remove obsolete test for pathless URLs
URLs without a path are perfectly valid; the path is implicitly `/`. libgit2 was incorrectly rejecting these paths, and LibGit2Sharp was incorrectly testing this bad behavior. Remove this test now that libgit2 has fixed this issue.
1 parent aad6094 commit 64ab971

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

LibGit2Sharp.Tests/CloneFixture.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -297,14 +297,6 @@ public void CanInspectCertificateOnClone(string url, string hostname, Type certT
297297
Assert.True(checksHappy);
298298
}
299299

300-
[Fact]
301-
public void CloningAnUrlWithoutPathThrows()
302-
{
303-
var scd = BuildSelfCleaningDirectory();
304-
305-
Assert.Throws<InvalidSpecificationException>(() => Repository.Clone("http://github.com", scd.DirectoryPath));
306-
}
307-
308300
[Theory]
309301
[InlineData("git://github.com/libgit2/TestGitRepository")]
310302
public void CloningWithoutWorkdirPathThrows(string url)

0 commit comments

Comments
 (0)
0