mirror of
https://github.com/actions/checkout
synced 2025-09-22 11:47:59 +00:00
Compare commits
2 commits
dd783235ce
...
990eedcc75
Author | SHA1 | Date | |
---|---|---|---|
![]() |
990eedcc75 | ||
![]() |
38cd156730 |
2 changed files with 2 additions and 2 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
|
@ -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}`);
|
||||
}
|
||||
|
|
|
@ -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}`)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue