How amazing that they even change API within a Z-release, and that they don't list all of the changes in the changelog (https://pypi.python.org/pypi/pygit2).
This patch looks good to me.
As you said on email thread, we might need more patches, but the patches so far look good and sane.
Let's merge and let's see how it goes on F23 later :)
Sounds good to me!