fixed git_repository_discover call for libgit >= 0.20.0