Skip to content

Commit

Permalink
synchronously config remotes to avoid errors with git config file
Browse files Browse the repository at this point in the history
  • Loading branch information
acrobat committed Oct 16, 2022
1 parent b52fe0e commit 30cb65f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ async function promiseAllInBatches(subtreeSplits: subtreeSplit[], batchSize: num
console.table(subtreeSplits);

// Make sure all remotes are correctly setup, this must be done synchronously to avoid race conditions.
subtreeSplits.map((split: subtreeSplit) => {
ensureRemoteExists(split.name, split.target);
});
for (let split of subtreeSplits) {
await ensureRemoteExists(split.name, split.target);
}

if (context.eventName === 'push' ) {
if (!context.ref.includes('refs/heads')) {
Expand Down

0 comments on commit 30cb65f

Please sign in to comment.