I do not think you should use the latest version of pygit2 in your application. Right now the api isn't stable. We try to avoid these changes but better now than after a 1.0 release (which could be in near future). If you depend on a recent change, well then you have no other choice...