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 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
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. リポジトリをフォークし、ブランチを切って変更します。
  4. 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 を短くまとめたダイジェスト。