ExternalProject: add support shallow clone submodules
This is possible with the server-side setting of uploadpack.allowReachableSHA1InWant
. Apparently this is set by github.com
and possible with GitLab. This should be attempted for each submodule before falling back to doing full clones (if the server doesn't support the feature).
Edited by Ben Boeckel