Skip to content

Commit 30cb65f

Browse files
committed
synchronously config remotes to avoid errors with git config file
1 parent b52fe0e commit 30cb65f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ async function promiseAllInBatches(subtreeSplits: subtreeSplit[], batchSize: num
6767
console.table(subtreeSplits);
6868

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

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

0 commit comments

Comments
 (0)