diff --git a/pkg/build/repo/repo.go b/pkg/build/repo/repo.go index 581be9688..7429d8fc6 100644 --- a/pkg/build/repo/repo.go +++ b/pkg/build/repo/repo.go @@ -94,10 +94,10 @@ func (r *Repo) Commands() []string { branch := r.Branch if len(branch) == 0 { branch = "master" - } + }r 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