mirror of
https://code.forgejo.org/actions/checkout.git
synced 2026-01-14 07:36:16 +00:00
Merge 38cd156730 into 0c366fd6a8
This commit is contained in:
commit
9f2eda4087
2 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue