mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
Merge pull request #1435 from lukatera/go-get-submodules
Download submodules when using base from git
This commit is contained in:
@@ -96,6 +96,20 @@ func ClonerUsingGitExec(repoSpec *RepoSpec) error {
|
|||||||
return errors.Wrapf(
|
return errors.Wrapf(
|
||||||
err, "trouble hard resetting empty repository to %s", repoSpec.Ref)
|
err, "trouble hard resetting empty repository to %s", repoSpec.Ref)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cmd = exec.Command(
|
||||||
|
gitProgram,
|
||||||
|
"submodule",
|
||||||
|
"update",
|
||||||
|
"--init",
|
||||||
|
"--recursive")
|
||||||
|
cmd.Stdout = &out
|
||||||
|
cmd.Dir = repoSpec.Dir.String()
|
||||||
|
err = cmd.Run()
|
||||||
|
if err != nil {
|
||||||
|
return errors.Wrapf(err, "trouble fetching submodules for %s", repoSpec.Ref)
|
||||||
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user