Skip to content

Commit

Permalink
fix: git repository check
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinzent03 committed Mar 13, 2021
1 parent d674f65 commit 98fa9f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default class ObsidianGit extends Plugin {

this.git = simpleGit(path);

const isValidRepo = this.git.checkIsRepo(CheckRepoActions.IS_REPO_ROOT);
const isValidRepo = await this.git.checkIsRepo(CheckRepoActions.IS_REPO_ROOT);

if (!isValidRepo) {
this.displayMessage("Valid git repository not found.", 0);
Expand Down

0 comments on commit 98fa9f7

Please sign in to comment.