libgit2 / libgit2/libgit2sharp
Exception During Rebase: No error message has been provided by the native library
まだ誰も着手していません。
- 主要言語
- C#
- スター
- 3.5k
- フォーク
- 925
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
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
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
再現手順の Rebase.Start 呼び出しから始め、LibGit2Sharp.Rebase.Start、Core.Proxy.git_rebase_init、Core.Ensure.HandleError を経由して追跡します。Windows 10 上で、LibGit2Sharp 0.26.0 と指定されたブランチ引数を使って再現し、その後、ネイティブの失敗と期待される rebaseResult.Status を比較します。断続的に発生するケースが説明され、空のエラー例外なしで処理されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp, git
- 領域
- devtools
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100