-
Notifications
You must be signed in to change notification settings - Fork 687
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding SingleBranch: true in the git clone options #3792
Conversation
This reverts commit aeb073c.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should only clone a single branch to reduce unnecessary data being downloaded.
This clone option should force only the required branch data to be cloned :
SingleBranch: true,
@amityt - Will it work with the git pull in go-git? |
It already works and is tested. I did the same with gitops feature ref:
|
|
@imrajdas LGTM, but lint check and dco is failing, please fix before merging |
Reverts #3776