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

JGit filters tags with "/" in their name, CliGit does not

XMLWordPrintable

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

      As discussed in JENKINS-37635, there is a difference between the JGit and the native git implementation of getTagNames():

      Take this demo repository as example: https://github.com/klimas7/Learn It contains 3 tags: v1.0.0, release/v.1.0.0 and release-tags/v.1.0.0

      Depending on the git client used (JGit or native git) the results are not the same. JGit only find v1.0.0.

      Additionally, the JGit implementation of getRemoteTagNames() appearrs to be the exact same as the implementation of JGit getTagNames(), even though the native git implementation of getRemoteTagNames() uses `ls-remote` to actually list the remote tag names. Note that the `ls-remote` call includes no credentials information, so a CliGitAPIImpl call to getRemoteTagNames() to a repository which requires authentication will probably fail anyway.

            markewaite Mark Waite
            jmini Jeremie Bresson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: