pygit2 unable to commit changes
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 1.7k
- フォーク
- 408
- 平均マージ
- 2日 57分
- マージ済み PR(30日)
- 7
説明
pygit2 == 1.7.0
I have been trying to commit changes to repo but unable to do so
snippet
oid = repository.create_commit(<branch_name>, author, commiter, message, tree, [repository.head.get_object().hex])
author and commiter are already defined
looks like get_object. was deprecated in newer version . are there any work arounds in latest version for commiting changes
error >>
KeyError: 'the requested type does not match the type in the ODB'
let know if any more details are needed
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
pygit2 1.7.0 の repository.create_commit 呼び出しと、報告に示されている repository.head.get_object() 式から始めます。提供されたスニペットで KeyError を再現し、親コミットを取得するために現在想定されている API を確認します。報告されたコミット操作が成功するか、repository、オブジェクト型、バージョンの不足している詳細によって問題の範囲が絞り込まれれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- git, python
- 領域
- devtools
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100