Just build libgit2 and try git_repository_open.