Merge pull request #1320 from caarlos0/recurse

feat: recurse submodules
This commit is contained in:
Tejal Desai 2020-06-23 13:18:01 -07:00 committed by GitHub
commit 1231c77c14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -50,9 +50,10 @@ func (g *Git) UnpackTarFromBuildContext() (string, error) {
directory := constants.BuildContextDir
parts := strings.Split(g.context, "#")
options := git.CloneOptions{
URL: getGitPullMethod() + "://" + parts[0],
Auth: getGitAuth(),
Progress: os.Stdout,
URL: getGitPullMethod() + "://" + parts[0],
Auth: getGitAuth(),
Progress: os.Stdout,
RecurseSubmodules: git.DefaultSubmoduleRecursionDepth,
}
if len(parts) > 1 {
options.ReferenceName = plumbing.ReferenceName(parts[1])