mirror of
https://code.forgejo.org/actions/checkout.git
synced 2025-04-24 04:15:33 +00:00
test submodule depth
This commit is contained in:
parent
80602fafba
commit
9350fe341a
2 changed files with 2 additions and 0 deletions
|
@ -263,6 +263,7 @@ class GitCommandManager {
|
|||
|
||||
async submoduleUpdate(fetchDepth: number, recursive: boolean): Promise<void> {
|
||||
const args = ['-c', 'protocol.version=2']
|
||||
// ?
|
||||
args.push('submodule', 'update', '--init', '--force')
|
||||
if (fetchDepth > 0) {
|
||||
args.push(`--depth=${fetchDepth}`)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue