libgit2 / libgit2sharp

Git + .NET = ❤
http://libgit2.github.com
MIT License
3.12k stars 878 forks source link

Clone set proxy #2018

Closed Arnaud-17 closed 7 months ago

Arnaud-17 commented 1 year ago

public static void Clone()

    {
        var url = @"https://github.com/repo.git";
        var path = "C:\\temp\\GitSharpTest";

        var co = new CloneOptions();
        co.CredentialsProvider = (_url, _user, _cred) => new UsernamePasswordCredentials { Username = "Username", Password = "Password" };

        Repository.Clone(url, path);
    }

can't find a way to set the proxy

Version of LibGit2Sharp (0.26.2)

DUWENINK commented 1 year ago

the same as to me ,

bording commented 7 months ago

LibGit2Sharp 0.29.0 has been released, which adds proxy options to make proxies fully configurable.