1
0
mirror of https://github.com/actions/checkout.git synced 2026-06-29 18:13:51 +08:00

Compare commits

..

1 Commits

Author SHA1 Message Date
copilot-swe-agent[bot]
8da04f86f4 Initial plan 2026-03-13 21:33:07 +00:00
2 changed files with 2 additions and 2 deletions

2
dist/index.js vendored
View File

@@ -983,7 +983,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', '--checkout');
args.push('submodule', 'update', '--init', '--force');
if (fetchDepth > 0) {
args.push(`--depth=${fetchDepth}`);
}

View File

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