8000 Enforce Clone() test coverage · apfunk/libgit2sharp@b5c658d · GitHub
[go: up one dir, main page]

Skip to content

Commit b5c658d

Browse files
committed
Enforce Clone() test coverage
Fix libgit2#701
1 parent e0a15ae commit b5c658d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

LibGit2Sharp.Tests/CloneFixture.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,5 +191,13 @@ public void CanCloneFromBBWithCredentials(string url, string user, string pass)
191191
Assert.False(repo.Info.IsBare);
192192
}
193193
}
194+
195+
[Fact]
196+
public void CloningAnUrlWithoutPathThrows()
197+
{
198+
var scd = BuildSelfCleaningDirectory();
199+
200+
Assert.Throws<InvalidSpecificationException>(() => Repository.Clone("http://github.com", scd.DirectoryPath));
201+
}
194202
}
195203
}

0 commit comments

Comments
 (0)
0