libgit2sharp icon indicating copy to clipboard operation
libgit2sharp copied to clipboard

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

Open petereg92 opened this issue 3 years ago • 0 comments

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

petereg92 avatar Apr 11 '22 16:04 petereg92