libgit2 / libgit2/libgit2sharp

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

Open
#1,960 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
3.5k
Forks
925
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with a repository containing moved files larger than 700 MB, using Repository.Clone(...) on .NET Framework 4.6.1. Start by examining the LibGit2SharpException reporting "Out of memory" during the clone. Done means the same repository clones successfully without throwing that exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, git
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.