mirror of
https://gitea.com/actions/checkout.git
synced 2024-11-21 17:31:30 +01:00
Added retry to submodule cloning
This commit is contained in:
parent
b32f140b0c
commit
15b44f68ab
2 changed files with 8 additions and 2 deletions
5
dist/index.js
vendored
5
dist/index.js
vendored
|
@ -792,7 +792,10 @@ class GitCommandManager {
|
||||||
if (recursive) {
|
if (recursive) {
|
||||||
args.push('--recursive');
|
args.push('--recursive');
|
||||||
}
|
}
|
||||||
yield this.execGit(args);
|
const that = this;
|
||||||
|
yield retryHelper.execute(() => __awaiter(this, void 0, void 0, function* () {
|
||||||
|
yield that.execGit(args);
|
||||||
|
}));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
submoduleStatus() {
|
submoduleStatus() {
|
||||||
|
|
|
@ -414,7 +414,10 @@ class GitCommandManager {
|
||||||
args.push('--recursive')
|
args.push('--recursive')
|
||||||
}
|
}
|
||||||
|
|
||||||
await this.execGit(args)
|
const that = this
|
||||||
|
await retryHelper.execute(async () => {
|
||||||
|
await that.execGit(args)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
async submoduleStatus(): Promise<boolean> {
|
async submoduleStatus(): Promise<boolean> {
|
||||||
|
|
Loading…
Reference in a new issue