-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Minor
-
Component/s: git-plugin
-
None
-
git plugin 4.4.0
When performing a git clone operation,
git-client and git-plugin both triggers a git fetch.
Â
Below are the two lines of code running in the same git clone command both doing fetches.
Â
The second link is part of the GITSCM step, it triggers the git-client-plugin's CloneCommand (first link) to perform the clone operation. And afterwards, the GITSCM step performs a fetch once the CloneCommand Completes.
However, within the CloneCommand (first link) itself, a fetch command was already done.
Â
Â
Â
I am aware there are needs to support for git clone to fetch all refs first --. The suggestion provided in that ticket was to use "honor git refspec", so shouldn't "honor git refspec" skip the first fetch here?JENKINS-31393
Â
Thanks,
Sam
- is related to
-
JENKINS-56404 Impossible exclude redundant/double fetches
-
- Closed
-
- links to