3
0
Fork 0
mirror of https://code.forgejo.org/actions/checkout.git synced 2026-03-18 14:13:48 +00:00
This commit is contained in:
Wiktor Kwapisiewicz 2025-11-24 13:56:23 +01:00 committed by GitHub
commit 579a52535b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -450,7 +450,7 @@ class GitCommandManager {
async submoduleUpdate(fetchDepth: number, recursive: boolean): Promise<void> {
const args = ['-c', 'protocol.version=2']
args.push('submodule', 'update', '--init', '--force')
args.push('submodule', 'update', '--init', '--force', '--checkout')
if (fetchDepth > 0) {
args.push(`--depth=${fetchDepth}`)
}