libgit2 / libgit2/libgit2sharp

Error when fetching from remote LibGit2Sharp.NotFoundException: 'object not found - no match for id

オープン
#1,828 コメント 5 件 リアクション 6 件 担当者 0 名 GitHub で見る

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

主要言語
C#
スター
3.5k
フォーク
925
PR マージ指標
30日以内にマージされた PR はありません

説明

We have been having a problem with libgit2sharp being unable to fetch from a remote after it gets to a certain size/certain number of branches. Researching this error seems to come back with results of problems with a sparse checkout which this isn't doing. I have attached a example program and repository that reproduces it. If you go to the generated repository user in the bin folder after running the program and run git pull from the command line it completes successfully.

Reproduction steps

Run the program downloadable here. I don't know exactly what it is about the repository that causes the problem.

Expected behavior

The fetch works as normal

Actual behavior

LibGit2Sharp.NotFoundException: 'object not found - no match for id (073a4772601e16614079cff44ca8d7d6275f6377)' is thrown

Version of LibGit2Sharp (release number or SHA1)

v0.26.2

Operating system(s) tested; .NET runtime tested

.NET Core SDK (reflecting any global.json):
Version: 3.1.401
Commit: 5b6f5e5005

Runtime Environment:
OS Name: Windows
OS Version: 10.0.18363
OS Platform: Windows
RID: win10-x64

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、ダウンロード可能な ConsoleApp1 の再現プログラムを実行し、bin フォルダー内に生成されたリポジトリを調べます。LibGit2Sharp による fetch と、成功するコマンドラインの git pull を比較し、その後、報告されたオブジェクト ID に対して失敗する fetch の経路を追跡します。再現プログラムの fetch が NotFoundException なしで完了すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
csharp, git
領域
devtools
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。