Deal with pygit2 v0.20.2 deprecations & improvements

See https://github.com/libgit2/pygit2#0202-2014-02-04