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

Shallow clones should only pass '--tags' if opted-in

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • git-plugin
    • None

      When using "Advanced clone behaviors" -> "Shallow Clone" the git command line looks like this:

      git fetch --tags --progress ssh://gerrit.example.com:29418/myrepo +refs/heads/:refs/remotes/origin/ --depth=1

      The --tags causes everything (or darn near close) on our repo because we tag every build in Jenkins.

      There should be a way to turn it off and it should probably be opt-in (but I'm not sure).

            ndeloof Nicolas De Loof
            docwhat Christian Höltje
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: