libgit2 / libgit2/libgit2sharp

Unable to push current branch to remote after revert the commit

Offen
#1,830 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
C#
Sterne
3.5k
Forks
925
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Reproduziere die gegen LibGit2Sharp v0.26 auf .NET Framework 4.6.1 beschriebene Revert- und Push-Sequenz und verfolge anschließend die an dem Fehler beteiligte Verarbeitung von Push und Revert. Die Aufgabe ist abgeschlossen, wenn die rückgängig gemachten Änderungen bereinigt, der Git-Status wiederhergestellt und der neue Commit ohne den Remote-Unpacking-Fehler gepusht werden kann.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
csharp, git
Bereich
devtools
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
30/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.