1
0
mirror of https://github.com/actions/checkout.git synced 2026-03-04 08:41:01 +08:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Allen Blaylock
09e7179378
Merge 15b44f68ab into 8e8c483db8 2025-12-02 22:14:34 +05:30
Allen Blaylock
15b44f68ab Added retry to submodule cloning 2024-03-01 15:48:13 -07:00
2 changed files with 8 additions and 2 deletions

5
dist/index.js vendored
View File

@ -991,7 +991,10 @@ class GitCommandManager {
if (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() {

View File

@ -459,7 +459,10 @@ class GitCommandManager {
args.push('--recursive')
}
await this.execGit(args)
const that = this
await retryHelper.execute(async () => {
await that.execGit(args)
})
}
async submoduleStatus(): Promise<boolean> {