Bumped libgit to 0.20 and adapt the code for the API changes.