-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Allow shallow clones for local workspaces #14312
Conversation
Changelog[uncommitted] (2023-11-01)Features
|
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.
Makes sense to me. It looks like we're always cloning a repo, and never fetching into it, in which case shallow clones make perfect sense.
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.
Mind adding a test? Otherwise LGTM
changelog/pending/20231023--auto--allow-shallow-repository-clones.yaml
Outdated
Show resolved
Hide resolved
Good call, there was a bug in go-git (maybe go-git/go-git#305) that was fixed by upgrading. |
Heyo, would love to get this fixed up and merged. I hope it doesn't fall through the cracks! |
98ddbd4
to
8afd902
Compare
Description
This exposes a GitRepo option to enable shallow cloning repositories. This is helpful in cases where the repo has a large history.
Checklist
make tidy
to update any new dependenciesmake lint
to verify my code passes the lint checkgofumpt
make changelog
and committed thechangelog/pending/<file>
documenting my change