I am having some problems when I try to clone a repository using the libgit2sharp library.
I get 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 the wiki libgit2sharp where I have to put the proxy configuration, but I did not find.
I would appreciate it if someone could help.
source share