Allow ExternalProject_Add and FetchContent_Declare accept arbitrary options for git clone
I am in a situation when I need to pass a non-config option:
--no-checkout. As far as I can see from the docs, the only supported options so far are
What I want to do in the first place is to fetch only files of interest from a repository of huge size:
git clone --depth=1 --no-checkout firstname.lastname@example.org cd some-repo git checkout HEAD path/to/small/file/1 git checkout HEAD path/to/small/file/2
Perhaps, an alternative solution would be to support sparse checkouts in general.
At the moment, the workaround is to do the above commands in a shell script executed by via