libgit implementation in pure Go