We have a submodule in our super project. That submodule uses a sparse checkout (think of the submodule as a large core library where we choose which parts are necessary for the current project). Despite the checkout working perfectly with its sparse checkout on the original project, new clones of that repo don't have any of the sparse checkout information; the config of the file has no 'sparsecheckout=true' and the info folder has no 'sparse-checkout' file.
What am I missing?
I ran:
[[I assume the foreach approach still works with only one submodule]]
git submodule update --init --recursive
git submodule foreach git read-tree -mu HEAD
git submodule foreach git pull origin master
EDIT 1: Looks like my repo also shows the entirety of the submodule, not the sparse checkout... which leads me to believe that information is never stored??