Integrate sparse checkout support and bump minimum Python version to 3.7 #13
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
First, thank you for a very useful utility!
This change set adds integrated support for a
sparseCheckoutoption that directly performs a sparse checkout of the listed directories.While attempting to use the git-external to do a sparse checkout, I originally tried a combination of
cloneArgsandscriptsupport. This was OK on Linux, however I found that colleagues using Windows were unable to usescriptas Windows only allows running executables. Instead, I made these changes which let git-external itself set up the sparse-checkout. This both works on Windows and eliminates the need for a separate script, so it is cleaner.I updated the usage info in the README to include the new option, also noting that
scriptdoes not work on Windows. I also bumped the minimum Python to 3.7 insetup.pybecause thecapture_outputparameter for subprocess was introduced in 3.7; I discovered this when running on an old Ubuntu 18 system with Python 3.6.