Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to push current branch to remote after revert the commit #1830

Open
dyphn1 opened this issue Oct 7, 2020 · 3 comments
Open

Unable to push current branch to remote after revert the commit #1830

dyphn1 opened this issue Oct 7, 2020 · 3 comments

Comments

@dyphn1
Copy link

dyphn1 commented Oct 7, 2020

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

@ethomson
Copy link
Member

ethomson commented Oct 7, 2020

What server is this? Can you push things that aren't reverts? This definitely sounds like a more general failure.

@dyphn1
Copy link
Author

dyphn1 commented Oct 7, 2020

圖片

@dyphn1
Copy link
Author

dyphn1 commented Oct 7, 2020

The remote is Gerrit server.
Before reverting, I can push the commit to remote,
But after revet operation, it will always throw that error when push to remote

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants