update for compatibility with latest pygit2 (0.20.3)