-
New Feature
-
Resolution: Fixed
-
Major
-
None
When using custom refspecs, we may not want to fetch the usual refs/heads/:refs/remotes/<remote>/ that is usually fetched when cloning a repository.
Also, for repositories that contain a lot of tags, it may not be interesting to fetch tags in a CI job, as what is usually needed is one branch's head.
- is related to
-
JENKINS-28516 refspec is not applied on clone (initial fetch)
-
- Closed
-
Code changed in jenkins
User: Vincent LATOMBE
Path:
src/main/java/org/jenkinsci/plugins/gitclient/CliGitAPIImpl.java
src/main/java/org/jenkinsci/plugins/gitclient/CloneCommand.java
src/main/java/org/jenkinsci/plugins/gitclient/FetchCommand.java
src/main/java/org/jenkinsci/plugins/gitclient/JGitAPIImpl.java
src/test/java/org/jenkinsci/plugins/gitclient/GitAPITestCase.java
http://jenkins-ci.org/commit/git-client-plugin/1a5f40df2473cc3c05e4bb8fc177631a440e3b0f
Log:
JENKINS-26417Allow customization of refspec/tags of the clone/fetch commands