diff --git a/pkg/build/repo/repo.go b/pkg/build/repo/repo.go index 581be9688..bd55d2b7c 100644 --- a/pkg/build/repo/repo.go +++ b/pkg/build/repo/repo.go @@ -97,7 +97,7 @@ func (r *Repo) Commands() []string { } cmds := []string{} - cmds = append(cmds, fmt.Sprintf("git clone --branch=%s %s %s", branch, r.Path, r.Dir)) + cmds = append(cmds, fmt.Sprintf("git clone --recursive --branch=%s %s %s", branch, r.Path, r.Dir)) switch { // if a specific commit is provided then we'll