Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added retry to submodule cloning #1636

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion dist/index.js
Expand Up @@ -792,7 +792,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() {
Expand Down
5 changes: 4 additions & 1 deletion src/git-command-manager.ts
Expand Up @@ -414,7 +414,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> {
Expand Down