-
Bug
-
Resolution: Won't Fix
-
Minor
-
None
Cloning tracking branch submodules with a depth implies --single-branch which will fail when the tracking branch is not master.
The Git plugin should use --no-single-branch to make sure that the remove branch reference are pulled.
This makes the --depth feature of the submodule part of the clone only work when all submodule tracking branches are master, which is quite restrictive.
It can be worked around by not setting shallow clone in the UI but that leads to pulling the whole submodule which for us is a difference of a 30second to a 4minute clone.