Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Component/s: git-plugin
-
Labels:None
-
Similar Issues:
Description
I have configured a shallow clone, but in the logs I see
git -c core.askpass=true fetch --tags --progress ssh://git.example.com/example.git +refs/heads/:refs/remotes/origin/ --depth=1
1. --tags is contrary to my purpose. Fetching all tags is a lot.
2. The refspec does not seem to obey what I have configured...this is downloading all refs.
I am interested in only one ref (hence the shallow clone). I should be able to configure it to do
git -c core.askpass=true fetch --progress ssh://git.example.com/example.git +refs/heads/my-branch:refs/remotes/origin/my-branch --depth=1
If there is a way to get this behavior, let me know.
Attachments
Issue Links
- duplicates
-
JENKINS-14572 Git plug-in fetches all tags even when refspec is provided
-
- Open
-
Fixed in git plugin that added support for honoring refspec on initial clone.