Skip to content
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

Limit git clone to latest commit #3136

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

weyfonk
Copy link
Contributor

@weyfonk weyfonk commented Dec 10, 2024

This should speed up git cloning.
A follow-up to this could implement filtering by path once this go-git PR is merged upstream.

This should speed up git cloning.
@weyfonk weyfonk requested a review from a team as a code owner December 10, 2024 16:15
@kkaempf kkaempf added this to the v2.10.2 milestone Dec 11, 2024
@manno manno modified the milestones: v2.10.2, v2.11.0 Dec 11, 2024
@@ -79,6 +79,7 @@ func cloneBranch(opts *GitCloner, auth transport.AuthMethod, caBundle []byte) er
CABundle: caBundle,
SingleBranch: true,
ReferenceName: plumbing.ReferenceName(opts.Branch),
Depth: 1,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed, it's unclear if this works with sub module cloning.

Copy link
Member

@manno manno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to investigate submodules

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 👀 In review
Development

Successfully merging this pull request may close these issues.

3 participants