mirror of
https://github.com/actions/checkout.git
synced 2025-12-14 17:01:15 +00:00
Compare commits
2 commits
47bf195057
...
579a52535b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
579a52535b | ||
|
|
38cd156730 |
2 changed files with 2 additions and 2 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
|
|
@ -978,7 +978,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}`);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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…
Reference in a new issue