Merge pull request #325 from fluxcd/go-git-submodules

Enable git submodules cloning when using go-git
This commit is contained in:
Stefan Prodan 2021-03-29 16:14:50 +03:00 committed by GitHub
commit 5486321a60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 9 deletions

View File

@ -194,10 +194,10 @@ and also impact the traffic costs.
To be able to support Azure DevOps a compromise solution was built, giving the user the To be able to support Azure DevOps a compromise solution was built, giving the user the
option to select the git library while accepting the drawbacks. option to select the git library while accepting the drawbacks.
| Git Implementation | Shallow Clones | V2 Protocol Support | | Git Implementation | Shallow Clones | Git Submodules | V2 Protocol Support |
|---|---|---| |---|---|---|---|
| 'go-git' | true | false | | 'go-git' | true | true | false |
| 'libgit2' | false | true | | 'libgit2' | false | false | true |
Pull the master branch from a repository in Azure DevOps. Pull the master branch from a repository in Azure DevOps.
@ -318,7 +318,7 @@ data:
password: <BASE64> password: <BASE64>
``` ```
## HTTPS self-signed certificates ### HTTPS self-signed certificates
Cloning over HTTPS from a Git repository with a self-signed certificate: Cloning over HTTPS from a Git repository with a self-signed certificate:

View File

@ -67,7 +67,7 @@ func (c *CheckoutBranch) Checkout(ctx context.Context, path, url string, auth *g
SingleBranch: true, SingleBranch: true,
NoCheckout: false, NoCheckout: false,
Depth: 1, Depth: 1,
RecurseSubmodules: 0, RecurseSubmodules: extgogit.DefaultSubmoduleRecursionDepth,
Progress: nil, Progress: nil,
Tags: extgogit.NoTags, Tags: extgogit.NoTags,
CABundle: auth.CABundle, CABundle: auth.CABundle,
@ -99,7 +99,7 @@ func (c *CheckoutTag) Checkout(ctx context.Context, path, url string, auth *git.
SingleBranch: true, SingleBranch: true,
NoCheckout: false, NoCheckout: false,
Depth: 1, Depth: 1,
RecurseSubmodules: 0, RecurseSubmodules: extgogit.DefaultSubmoduleRecursionDepth,
Progress: nil, Progress: nil,
Tags: extgogit.NoTags, Tags: extgogit.NoTags,
CABundle: auth.CABundle, CABundle: auth.CABundle,
@ -131,7 +131,7 @@ func (c *CheckoutCommit) Checkout(ctx context.Context, path, url string, auth *g
ReferenceName: plumbing.NewBranchReferenceName(c.branch), ReferenceName: plumbing.NewBranchReferenceName(c.branch),
SingleBranch: true, SingleBranch: true,
NoCheckout: false, NoCheckout: false,
RecurseSubmodules: 0, RecurseSubmodules: extgogit.DefaultSubmoduleRecursionDepth,
Progress: nil, Progress: nil,
Tags: extgogit.NoTags, Tags: extgogit.NoTags,
CABundle: auth.CABundle, CABundle: auth.CABundle,
@ -173,7 +173,7 @@ func (c *CheckoutSemVer) Checkout(ctx context.Context, path, url string, auth *g
RemoteName: git.DefaultOrigin, RemoteName: git.DefaultOrigin,
NoCheckout: false, NoCheckout: false,
Depth: 1, Depth: 1,
RecurseSubmodules: 0, RecurseSubmodules: extgogit.DefaultSubmoduleRecursionDepth,
Progress: nil, Progress: nil,
Tags: extgogit.AllTags, Tags: extgogit.AllTags,
CABundle: auth.CABundle, CABundle: auth.CABundle,