Merge 38cd156730b4cb5dbcab5f29df2435aa38e06811 into 09d2acae674a48949e3602304ab46fd20ae0c42f

This commit is contained in:
Wiktor Kwapisiewicz 2025-06-08 22:25:25 +02:00 committed by GitHub
commit 1398c1583e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

2
dist/index.js vendored
View File

@ -796,7 +796,7 @@ class GitCommandManager {
submoduleUpdate(fetchDepth, recursive) {
return __awaiter(this, void 0, void 0, function* () {
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}`);
}

View File

@ -411,7 +411,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}`)
}