jenkinsci / jenkinsci/git-plugin

[JENKINS-56517] fetch has 3 options: nothing, --no-tags, --tags, jenkins only 2

Open
#3,413 3 comments 0 reactions 0 assignees View on GitHub
component:git-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
694
Forks
1.1k
Avg merge
1h 29m
Merged PRs (30d)
3

Description

git fetch has three options to fetch tags:



  • "git fetch" fetches a branch with tags reachable, the ideal default

  • "git fetch --no-tags" fetches a branch without tags

  • "git fetch --tags" fetches tags not reachable from the branch, i.e. other branches also

in jenkins variant 1, fetching tags reachable cannot be configured any more (with ease), while it reasonably should be the default? also the branch name is not there in the git repo fetched. all of these operatins add labels to existing commits so do not increase the clone size.

this should be for multibranch pipeline, not sure what the correct component is.

the current workaround is:

// code placeholder


---
Originally reported by rthurner, imported from: fetch has 3 options: nothing, --no-tags, --tags, jenkins only 2


  • status: Open
  • priority: Major
  • component(s): git-plugin
  • resolution: Unresolved
  • votes: 1
  • watchers: 4
  • imported: 2025-12-02

Raw content of original issue

git fetch has three options to fetch tags:



  • "git fetch" fetches a branch with tags reachable, the ideal default

  • "git fetch --no-tags" fetches a branch without tags

  • "git fetch --tags" fetches tags not reachable from the branch, i.e. other branches also

in jenkins variant 1, fetching tags reachable cannot be configured any more (with ease), while it reasonably should be the default? also the branch name is not there in the git repo fetched. all of these operatins add labels to existing commits so do not increase the clone size.

this should be for multibranch pipeline, not sure what the correct component is.

the current workaround is:



// code placeholder



Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.