-
Bug
-
Resolution: Fixed
-
Major
-
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.