Apply Function on Repository Fails on blank lines
オープン
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 1.7k
- フォーク
- 408
- 平均マージ
- 2日 57分
- マージ済み PR(30日)
- 7
説明
The apply Function of the Repository Class fails if a diff contains a blank line with the Error = "Error: _pygit2.GitError: hunk at line ... did not apply"
To make it more clear. The hunk
- this is a
- test
-
repo.apply(diff,pygit2.GIT_APPLY_LOCATION_INDEX)
has a blank last line that is removed. This hunk fails when applied.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Start at the Repository.apply entry point and reproduce the shown diff containing a blank final line with repo.apply(diff, pygit2.GIT_APPLY_LOCATION_INDEX). Done means this hunk applies successfully without the reported _pygit2.GitError.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- git, python
- 領域
- api
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100