direct: use CloneURL instead of SSH

Make sure that we use public CloneURL instead of SSH for submodule
OBS doesn't fetch submodules with SSH schema
This commit is contained in:
Adam Majer 2024-09-25 16:33:07 +02:00
parent d7bbe5695c
commit 5de077610c

View File

@ -316,7 +316,7 @@ next_repo:
}
// add repository to git project
common.PanicOnError(git.GitExec(config.GitProjectName, "submodule", "--quiet", "add", "--depth", "1", r.SSHURL, r.Name))
common.PanicOnError(git.GitExec(config.GitProjectName, "submodule", "--quiet", "add", "--depth", "1", r.CloneURL, r.Name))
if len(config.Branch) > 0 {
if err := git.GitExec(path.Join(config.GitProjectName, r.Name), "fetch", "--depth", "1", "origin", config.Branch+":"+config.Branch); err != nil {