New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sparse checkout not working with recent git versions #37
Comments
I spent some time debugging the same issue and just came to report my findings. In
You see that it fails:
When having a look at the contents of |
@rmunoz, thanks for raising this issue. I see your company forked the repo and you made some changes. Feel free to create a pull request. You could even add the runners that have the newer git version to the integration tests to make sure this works with the newer version. |
@jdoiro3 yep, tbh is just a quick and dirty workaround to unblock my team that basically adds the
I'm going to be off for two weeks (summer break) but once I'll be back my plan is to prepare a proper fix checking the git version as you're already doing for older git versions. |
@rmunoz and @jorgheymans - as an FYI I have a PR (#40) where I'm starting to run integration tests with different versions of git and python. |
This should be fixed with |
Thanks @jdoiro3 it works now ! |
Thanks @jdoiro3, it works fine 👏 |
GitHub Actions recently updated their virtual environments (see ubuntu-latest for example) and now git cli version is 2.37. This is causing problems with
git sparse-checkout set
used insparse_clone.sh
script because it doesn't admit patterns to be passed.Looking at the git docs for a version that works and the one that doesn't seems that we we need to pass
--no-cone
flag in order to keep using patterns in the sparse checkout. I tested locally modifying the script in my local virtual environment and works but I'm not sure if it's the "real" fix, not very familiar with sparse checkouts.The text was updated successfully, but these errors were encountered: