libgit2 / libgit2/libgit2sharp

Unable to push current branch to remote after revert the commit

Đang mở
#1,830 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Ngôn ngữ chính
C#
Star
3.5k
Fork
925
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Tái hiện chuỗi revert và push được mô tả đối với LibGit2Sharp v0.26 trên .NET Framework 4.6.1, sau đó lần theo quá trình xử lý push và revert liên quan đến lỗi. Công việc được hoàn tất khi các thay đổi đã revert được dọn dẹp, trạng thái Git được khôi phục và commit mới có thể được push mà không gặp lỗi unpacking của remote.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
csharp, git
Lĩnh vực
devtools
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
30/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.