Skip to content

Commit 5042c24

Browse files
committed
Improves progress reporting in multi-repo ops
1 parent 0180b3d commit 5042c24

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/git/gitProviderService.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1487,7 +1487,7 @@ export class GitProviderService implements Disposable {
14871487
location: ProgressLocation.Notification,
14881488
title: `Fetching ${repositories.length} repositories`,
14891489
},
1490-
() => Promise.all(repositories.map(r => r.fetch({ progress: false, ...options }))),
1490+
() => Promise.allSettled(repositories.map(r => r.fetch({ progress: false, ...options }))),
14911491
);
14921492
}
14931493

@@ -1521,7 +1521,7 @@ export class GitProviderService implements Disposable {
15211521
location: ProgressLocation.Notification,
15221522
title: `Pulling ${repositories.length} repositories`,
15231523
},
1524-
() => Promise.all(repositories.map(r => r.pull({ progress: false, ...options }))),
1524+
() => Promise.allSettled(repositories.map(r => r.pull({ progress: false, ...options }))),
15251525
);
15261526
}
15271527

@@ -1565,7 +1565,7 @@ export class GitProviderService implements Disposable {
15651565
location: ProgressLocation.Notification,
15661566
title: `Pushing ${repositories.length} repositories`,
15671567
},
1568-
() => Promise.all(repositories.map(r => r.push({ progress: false, ...options }))),
1568+
() => Promise.allSettled(repositories.map(r => r.push({ progress: false, ...options }))),
15691569
);
15701570
}
15711571

0 commit comments

Comments
 (0)