Git-Publisher should allow to push tags from a shallow clone

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

XMLWordPrintable

      Git-Publisher should allow to push tags / branches from a shallow clone. New Git versions (1.9.0+) allow pushing tags from shallow clone (see here and here for example), but latest version of Git-Publisher still forbids this (see source code). It prints the following message, but it does not fail the build:

      GitPublisher disabled while using shallow clone.
      

      I could propose a pull request to resolve this ticket in the coming days. My solution would be to try to push the tag, and show a reasonably nice error message if it fails due to old Git version. This behavior is slightly different than the current one, because currently job succeeds. What do you think?

            Assignee:
            Mark Waite
            Reporter:
            Jarek Lipski
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: