Skip to content

Commit 5d7a655

Browse files
authoredAug 30, 2023
Fix unhandled promise rejection during git operations (#12433)
1 parent 96bd270 commit 5d7a655

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎packages/git/src/node/git-repository-manager.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ export class GitRepositoryManager {
3030

3131
run<T>(repository: Repository, op: () => Promise<T>): Promise<T> {
3232
const result = op();
33-
result.then(() => this.sync(repository));
33+
result.then(() => this.sync(repository).catch(e => console.log(e)));
34+
3435
return result;
3536
}
3637

0 commit comments

Comments
 (0)
Please sign in to comment.