replace dulwich with pygit2