Skip to content

Commit

Permalink
feat: recurse submodules
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <[email protected]>
  • Loading branch information
caarlos0 committed Jun 15, 2020
1 parent aeaea50 commit ab42a91
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 ab42a91

Please sign in to comment.