Shallow cloning non-master submodules fails

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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.

            Assignee:
            Unassigned
            Reporter:
            Matt
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: