libgit2sharp icon indicating copy to clipboard operation
libgit2sharp copied to clipboard

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

Open mohamedmiss3ed opened this issue 1 year ago • 3 comments

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

mohamedmiss3ed avatar May 21 '24 19:05 mohamedmiss3ed

Ive been encountering the same issue

CodingJinxx avatar Jul 02 '24 11:07 CodingJinxx

any update on this?

mezzo1981 avatar Sep 23 '24 13:09 mezzo1981

Is the value of username a <user> string? I've been able to start isolating a problem where the domain gets trimmed before it gets to Azure resulting in an incorrect username in the login.

kastagg avatar Oct 22 '24 19:10 kastagg