libgit2 / libgit2/libgit2sharp

Unable to push current branch to remote after revert the commit

Open
#1,830 3 comments 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

You are opening a bug report against the LibGit2Sharp project: we
use GitHub Issues for tracking bug reports and feature requests. If
you have a question about an API or usage, please ask on StackOverflow:
http://stackoverflow.com/questions/tagged/libgit2sharp.

Otherwise, to report a bug, please fill out the reproduction steps
(below) and delete these introductory paragraphs. Thanks!

Reproduction steps
  1. Revert a single commit (the revert status must be reverted)
  2. Create a new commit for reverting changes
  3. Push commit to remote
  4. When push remote, it will always throw error msg "unpacking the sent packfile failed on the remote"
Expected behavior

After creating a new commit, it must cleanup the reverting objs, and allow to push to server

Actual behavior

It will always throw error msg "unpacking the sent packfile failed on the remote"
And unable to restore git status to enable push to remote

Version of LibGit2Sharp (release number or SHA1)

v0.26

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 revert and push sequence described against LibGit2Sharp v0.26 on .NET Framework 4.6.1, then trace the push and revert handling involved in the failure. Done means the reverted changes are cleaned up, Git status is restored, and the new commit can be pushed without the remote unpacking error.

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
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.