mirror of
https://github.com/actions/checkout.git
synced 2025-11-28 01:51:57 +02:00
Merge 38cd156730 into c2d88d3ecc
This commit is contained in:
commit
579a52535b
2 changed files with 2 additions and 2 deletions
|
|
@ -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}`)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue