-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Windows Server 2008 Master, Jenkins ver. 1.447.2; Linux Jenkins 1.597, Git plugin 2.2.12.
When a repository is configured to fetch a specific refspec from the upstream repository, all tags are fetched.
The documentation specifically states that when a refspec is specified, only that refspec will be fetched.
NOTE: This is not a duplicate of JENKINS-6124. That issue is requesting this to be optional for all cases. This issue is requesting only that the behavior in this specific scenario behave as documented. (i.e. fix the bug)
- is duplicated by
-
JENKINS-27341 Shallow clone fetches all tags and ignores refspec
-
- Closed
-
Code changed in jenkins
User: rhaendel
Path:
src/main/java/hudson/plugins/git/extensions/impl/CloneOption.java
src/test/java/hudson/plugins/git/extensions/impl/CloneOptionShallowDefaultTagsTest.java
http://jenkins-ci.org/commit/git-plugin/24fb7f3c441057ad09fc3ce6bbedffff797e92bc
Log:
JENKINS-14572 Add a test case for clone option's default 'fetch tags' behaviour
Even with shallow clones "fetch all tags" is the default. Just added a
missing test case and found a true/false bug in my previous commit which
toggled the default to the not backwards compatible value.