feat: recurse submodules
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
parent
aeaea502e9
commit
ab42a919a5
|
|
@ -50,9 +50,10 @@ func (g *Git) UnpackTarFromBuildContext() (string, error) {
|
||||||
directory := constants.BuildContextDir
|
directory := constants.BuildContextDir
|
||||||
parts := strings.Split(g.context, "#")
|
parts := strings.Split(g.context, "#")
|
||||||
options := git.CloneOptions{
|
options := git.CloneOptions{
|
||||||
URL: getGitPullMethod() + "://" + parts[0],
|
URL: getGitPullMethod() + "://" + parts[0],
|
||||||
Auth: getGitAuth(),
|
Auth: getGitAuth(),
|
||||||
Progress: os.Stdout,
|
Progress: os.Stdout,
|
||||||
|
RecurseSubmodules: git.DefaultSubmoduleRecursionDepth,
|
||||||
}
|
}
|
||||||
if len(parts) > 1 {
|
if len(parts) > 1 {
|
||||||
options.ReferenceName = plumbing.ReferenceName(parts[1])
|
options.ReferenceName = plumbing.ReferenceName(parts[1])
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue