libgit2 / libgit2/libgit2sharp
Exception During Rebase: No error message has been provided by the native library
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ả
I've seen this happen a couple times out of a hundred, so it is difficult to reproduce. When it has happened, I've rebased successfully from the command-line without any conflicts; then when I re-run this it still fails.
Stack Trace
LibGit2Sharp.LibGit2SharpException: No error message has been provided by the native library
at LibGit2Sharp.Core.Ensure.HandleError(Int32 result)
at LibGit2Sharp.Core.Proxy.git_rebase_init(RepositoryHandle repo, AnnotatedCommitHandle branch, AnnotatedCommitHandle upstream, AnnotatedCommitHandle onto, GitRebaseOptions options)
at LibGit2Sharp.Rebase.Start(Branch branch, Branch upstream, Branch onto, Identity committer, RebaseOptions options)
Reproduction steps
var rebaseResult = repository.Rebase.Start(featureBranch, masterBranch, null, _getIdentity(repository), new RebaseOptions());
Expected behavior
A rebaseResult.Status
Actual behavior
An exception
Version of LibGit2Sharp (release number or SHA1)
0.26.0
Operating system(s) tested; .NET runtime tested
Windows 10
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với lệnh gọi Rebase.Start trong phần tái hiện và lần theo nó qua LibGit2Sharp.Rebase.Start, Core.Proxy.git_rebase_init và Core.Ensure.HandleError. Tái hiện trên Windows 10 với LibGit2Sharp 0.26.0 và các đối số branch được cung cấp, sau đó so sánh lỗi native với rebaseResult.Status dự kiến. Hoàn tất khi trường hợp xảy ra không ổn định được giải thích và được xử lý mà không có exception lỗi rỗng.
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
- 35/100