libgit2 / libgit2/libgit2sharp

"Out of memory" LibGit2SharpException thrown when attempting to clone using Repository.Clone(...)

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

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

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

説明

Reproduction steps
  1. Create a repo.
  2. Add some large files (>700 MB).
  3. Move the large files and author a commit.
  4. Attempt to clone the repo using Repository.Clone(...)
  5. Observe that a LibGit2SharpException is thrown with a message that states "Out of memory".
Expected behavior
  1. Create a repo.
  2. Add some large files (>700 MB).
  3. Move the large files and author a commit.
  4. Attempt to clone the repo using Repository.Clone(...)
  5. Clone succeeds without throwing an exception.
Actual behavior
  1. Create a repo.
  2. Add some large files (>700 MB).
  3. Move the large files and author a commit.
  4. Attempt to clone the repo using Repository.Clone(...)
  5. Observe that a LibGit2SharpException is thrown with a message that states "Out of memory".
Version of LibGit2Sharp (release number or SHA1)

0.27.0-preview-0175

Operating system(s) tested; .NET runtime tested

.NET Framework 4.6.1

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

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

はじめの一歩

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

調査の方向性

.NET Framework 4.6.1 上で Repository.Clone(...) を使用し、700 MB を超えるサイズの移動されたファイルを含むリポジトリで問題を再現します。まず、クローン中に "Out of memory" を報告する LibGit2SharpException を調査します。同じリポジトリがこの例外をスローせずに正常にクローンできれば完了です。

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

評価

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

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

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