Commit 62151c15 authored by Jérome Perrin's avatar Jérome Perrin

fix: retry prune operations

This is involves the server, so it fails when server is unavailable
parent 65c2a233
......@@ -27,8 +27,8 @@ if (!fs.existsSync(wd)) {
cd(wd)
let reportedConflictHashes
while (true) {
await $`git remote prune project`
await $`git remote prune upstream`
await retry(30, expBackoff(), () => $`git remote prune project`)
await retry(30, expBackoff(), () => $`git remote prune upstream`)
await retry(30, expBackoff(), () => $`git fetch --all`)
await $`git reset --hard project/${config.project.branch}`
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment