Skip to content

Commit

Permalink
Merge pull request #1320 from caarlos0/recurse
Browse files Browse the repository at this point in the history
feat: recurse submodules
  • Loading branch information
tejal29 authored Jun 23, 2020
2 parents 82f5ec9 + ab42a91 commit 1231c77
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/buildcontext/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 1231c77

Please sign in to comment.