mirror of
https://github.com/actions/checkout.git
synced 2026-06-14 16:53:47 +08:00
Merge 38cd156730 into 0c366fd6a8
This commit is contained in:
@@ -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}`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user