Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-65635

Shallow cloning non-master submodules fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • git-plugin
    • 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.

            Unassigned Unassigned
            mattyclarkson Matt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: