libgit2 / libgit2sharp

Git + .NET = ❤
http://libgit2.github.com
MIT License
3.17k stars 886 forks source link

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

Open petereg92 opened 2 years ago

petereg92 commented 2 years ago

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