~comcloudway/builds.sr.ht

c27bb9d14d22cc6112325d9800f769d2686e151c — Hanna 2 years ago 303fe05
recursively initialize submodules

Updates the clone task to recursively init submodules rather
than only initializing at a depth of 1.
1 files changed, 1 insertions(+), 1 deletions(-)

M worker/tasks.go
M worker/tasks.go => worker/tasks.go +1 -1
@@ 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 {