fix(git): submodule update command uses an unsupported option (#6454)

This commit is contained in:
broesch
2025-08-27 16:51:08 +02:00
committed by GitHub
parent 5fbad08e45
commit c2ff9eae0d
2 changed files with 39 additions and 5 deletions

View File

@@ -998,7 +998,7 @@ class Application extends BaseModel
$git_clone_command = "{$git_clone_command} sed -i \"s#git@\(.*\):#https://\\1/#g\" {$baseDir}/.gitmodules || true &&";
}
// Add shallow submodules flag if shallow clone is enabled
$submoduleFlags = $isShallowCloneEnabled ? '--shallow-submodules' : '';
$submoduleFlags = $isShallowCloneEnabled ? '--depth=1' : '';
$git_clone_command = "{$git_clone_command} GIT_SSH_COMMAND=\"ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null\" git submodule update --init --recursive {$submoduleFlags}; fi";
}
if ($this->settings->is_git_lfs_enabled) {