I'm having some problems when I try to clone a repository using the library libgit2sharp.
I'm getting this error:
A first chance exception of type 'LibGit2Sharp.LibGit2SharpException' occurred in LibGit2Sharp.dll
Additional information: Failed to set proxy: Wrong parameter.
I'm trying to clone like this:
var gitServerUri = new Uri(Settings.Default.GitServerUrl);
var cred = Git.Credentials.Get(gitServerUri.Host);
string clonedRepoPath = Repository.Clone(project.GitUrl(),projectLocalPath, new CloneOptions()
{
CredentialsProvider = (_url, _user, _cred) => new UsernamePasswordCredentials
{
Username = cred.Login,
Password = cred.Password,
}
});
I tried to find in wiki of libgit2sharp where i should put the proxy config, but i didn't found.
I will be grateful if someone can help.