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:
parent
d7bbe5695c
commit
5de077610c
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user