Fixed in git plugin 4.0.0 (and possibly earlier) with the addition of reference repository support for submodules. Refer to the git plugin documentation for more details.