Open mohamedmiss3ed opened 4 months ago
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);
should fetch normally with exceptions
throw too many redirects or authentication replays
0.29.0 & 0.30.0
Ive been encountering the same issue
any update on this?
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