r-lib / gert

Simple git client for R
https://docs.ropensci.org/gert/
Other
146 stars 31 forks source link

Fix: git_ls with a ref gives correct details #212

Closed M-Kusumgar closed 6 months ago

M-Kusumgar commented 6 months ago

This PR addresses https://github.com/r-lib/gert/issues/211. git_index_new, which was being used when git_ls had a ref, is not in the current version of libgit2 (only until v1.6.5) so we get the index via git_repository_index.

I have also added the test contained in the issue.

jeroen commented 6 months ago

Thanks!