cake-contrib / Cake_Git

Cake AddIn that extends Cake with Git features using LibGit2 and LibGit2Sharp

Home Page:https://cakebuild.net/extensions/cake-git

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Skip checking certificate

RZProf opened this issue · comments

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