libgit2 / libgit2sharp

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

FetchOptions in CloneOptions is readonly and has not been set in constructor ! #2088

Open Torabi opened 3 months ago

Torabi commented 3 months ago

Reproduction steps

unable to set CredentialsProvider
co.FetchOptions.CredentialsProvider = (_url, _user, _cred) => new LibGit2Sharp.UsernamePasswordCredentials { Username = "username", Password = accessToken }; because the FetchOptions is null and it cannot be set in CloneOptions as it is readonly

Expected behavior

Actual behavior

Version of LibGit2Sharp (release number or SHA1)

Operating system(s) tested; .NET runtime tested