Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip checking certificate #156

Open
RZProf opened this issue Dec 6, 2021 · 0 comments
Open

Skip checking certificate #156

RZProf opened this issue Dec 6, 2021 · 0 comments

Comments

@RZProf
Copy link

RZProf commented Dec 6, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant