libgit2 / libgit2sharp

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

the error "too many redirects or authentication replays libgit2shap" come up after upgrading from 0.28 to 0.30 on Fetch #2095

Open mohamedmiss3ed opened 4 months ago

mohamedmiss3ed commented 4 months ago

Reproduction steps

upgrading from 0.28 to 0.30 on Fetch

Repository.Init(_gitRootPath); using var repo = new Repository(gitRootPath); Remote remote = repo.Network.Remotes.Add(VcConstants.ORIGIN, vcSettings.GitRepoUrl); var remoteRefSpecs = remote.FetchRefSpecs.Select(x => x.Specification); Commands.Fetch(repo, remote.Name, refSpecs, new FetchOptions { CredentialsProvider = (, , ) => new UsernamePasswordCredentials { Username = vcSettings.GitUsername, Password = vcSettings.GitPassword }, Prune = true }, string.Empty);

Expected behavior

should fetch normally with exceptions

Actual behavior

throw too many redirects or authentication replays

Version of LibGit2Sharp (release number or SHA1)

0.29.0 & 0.30.0

Operating system(s) tested; .NET runtime tested

CodingJinxx commented 3 months ago

Ive been encountering the same issue

mezzo1981 commented 1 week ago

any update on this?