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.
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
has a blank last line that is removed. This hunk fails when applied.