libgit2 / libgit2/libgit2sharp

Push not throwing exception when more than 100MB file is being pushed to GitHub

Open
#1,933 1 comment 0 reactions 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 - Copy a new file of size more than 100MB to local repository.
2 - Stage that file.
3 - Commit that file.
4 - Push that file.

Expected behavior

The behavior expected is that it should throw an exception similarly to GitHub Desktop.

Actual behavior

The actual behavior is that there is no exception thrown and does not push as well to the remote repository on GitHub.

Version of LibGit2Sharp (release number or SHA1)

0.27.0-preview-0158

Operating system(s) tested; .NET runtime tested

OS: Windows 10
.NET runtime: .NET 6

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

Start by reproducing the Windows 10/.NET 6 case with LibGit2Sharp 0.27.0-preview-0158: push a committed file larger than 100 MB and observe the returned behavior. Trace the push path and its error handling, then verify that an appropriate exception is surfaced while the oversized file is rejected.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, git
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.