Revert "Move to pygit2 v0.21"

This reverts commit f8f9e452f2eb516d0e05ef689136607f3d1595dd.
Support pygit2 since 0.19