From c27bb9d14d22cc6112325d9800f769d2686e151c Mon Sep 17 00:00:00 2001 From: Hanna Date: Tue, 7 Jun 2022 21:09:51 +0000 Subject: [PATCH] recursively initialize submodules Updates the clone task to recursively init submodules rather than only initializing at a depth of 1. --- worker/tasks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker/tasks.go b/worker/tasks.go index 022d60a..a1a2531 100644 --- a/worker/tasks.go +++ b/worker/tasks.go @@ -423,7 +423,7 @@ func (ctx *JobContext) CloneGitRepo(srcurl, repo_name, ref string) error { git = ctx.SSH("GIT_SSH_COMMAND='ssh -o " + "UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'", "sh", "-euxc", - fmt.Sprintf("'cd %s && git submodule update --init'", repo_name)) + fmt.Sprintf("'cd %s && git submodule update --init --recursive'", repo_name)) git.Stdout = ctx.LogFile git.Stderr = ctx.LogFile if err := git.Run(); err != nil { -- 2.38.5