Skip to content

Skip checking certificate #156

@RZProf

Description

@RZProf

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions