Skip to content

Commit

Permalink
Fix unhandled promise rejection during git operations (#12433)
Browse files Browse the repository at this point in the history
  • Loading branch information
erezmus authored Aug 30, 2023
1 parent 96bd270 commit 5d7a655
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/git/src/node/git-repository-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ export class GitRepositoryManager {

run<T>(repository: Repository, op: () => Promise<T>): Promise<T> {
const result = op();
result.then(() => this.sync(repository));
result.then(() => this.sync(repository).catch(e => console.log(e)));

return result;
}

Expand Down

0 comments on commit 5d7a655

Please sign in to comment.