mirror of
https://github.com/actions/checkout.git
synced 2026-06-19 18:57:20 +08:00
Merge 38cd156730b4cb5dbcab5f29df2435aa38e06811 into 900f2210b1d28bbbd0bd22d17926b9e224e8f231
This commit is contained in:
commit
5346e0bada
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -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');
|
||||
args.push('submodule', 'update', '--init', '--force', '--checkout');
|
||||
if (fetchDepth > 0) {
|
||||
args.push(`--depth=${fetchDepth}`);
|
||||
}
|
||||
|
||||
@ -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')
|
||||
args.push('submodule', 'update', '--init', '--force', '--checkout')
|
||||
if (fetchDepth > 0) {
|
||||
args.push(`--depth=${fetchDepth}`)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user