libgit2/libgit2sharp

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

Torabi opened this issue · 0 comments

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