libgit2 / libgit2/libgit2sharp

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

未關閉
#2,095 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

主要語言
C#
星號
3.5k
分支
925
PR 合併指標
30 天內沒有已合併 PR

描述

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

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

從提供的 Repository.Init 和 Commands.Fetch 重現開始,尤其是 FetchOptions.CredentialsProvider,並比較 LibGit2Sharp 0.28、0.29 和 0.30 之間的行為。在所回報的環境中確認結果,並判定驗證或重新導向處理是否有所變更;當 fetch 使用提供的認證正常完成,且必要的 runtime 與 OS 詳細資訊已記錄時,即表示完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
csharp, git
領域
tooling
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。