Skip checking certificate
RZProf opened this issue · comments
Reza Mousazadeh commented
In equivalent c# code we can use below line:
var path = LibGit2Sharp.Repository.Clone(
repo,
testRepo.FullPath,
new LibGit2Sharp.CloneOptions
{
BranchName = "develop",
CertificateCheck = (certificate, valid, host) => true,
Checkout = true,
CredentialsProvider = (url, fromUrl, types) => new LibGit2Sharp.UsernamePasswordCredentials
{Username = "****", Password = "*****"}
});
what about cake script?!
i try to paste above code in cake file. it fails with
LibGit2SharpException: No error message has been provided by the native library
thanks