From 4604067dbd4fc586982575e656d9995b7256bf28 Mon Sep 17 00:00:00 2001 From: ARTHUS Anthony Date: Thu, 26 Oct 2023 13:22:31 +0200 Subject: [PATCH] Add recurse submodules on the git pull --- db_lib/GoGitClient.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/db_lib/GoGitClient.go b/db_lib/GoGitClient.go index 662e7b004..1894e01e9 100644 --- a/db_lib/GoGitClient.go +++ b/db_lib/GoGitClient.go @@ -114,7 +114,9 @@ func (c GoGitClient) Pull(r GitRepository) error { } // Pull the latest changes from the origin remote and merge into the current branch - err = wt.Pull(&git.PullOptions{RemoteName: "origin", Auth: authMethod}) + err = wt.Pull(&git.PullOptions{RemoteName: "origin", + Auth: authMethod, + RecurseSubmodules: git.DefaultSubmoduleRecursionDepth}) if err != nil && err != git.NoErrAlreadyUpToDate { r.Logger.Log("Unable to pull latest changes") return err