Skip to content

Commit

Permalink
fix: add additional author check
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinzent03 committed Mar 7, 2023
1 parent 150341f commit 58ce847
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/isomorphicGit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ export class IsomorphicGit extends GitManager {
unstagedFiles?: UnstagedFile[];
}): Promise<number | undefined> {
try {
await this.checkAuthorInfo();

await this.stageAll({ status, unstagedFiles });
return this.commit(message);
} catch (error) {
Expand Down

0 comments on commit 58ce847

Please sign in to comment.