Skip to content

Commit

Permalink
fix: disable check for root git repository
Browse files Browse the repository at this point in the history
fix #55 fix #11
  • Loading branch information
Vinzent03 committed Mar 17, 2021
1 parent 9ded8f5 commit 49a68e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { spawnSync } from "child_process";
import { FileSystemAdapter, Notice, Plugin, PluginSettingTab, Setting, SuggestModal } from "obsidian";
import simpleGit, { CheckRepoActions, FileStatusResult, SimpleGit } from "simple-git";
import simpleGit, { FileStatusResult, SimpleGit } from "simple-git";

enum PluginState {
idle,
Expand Down Expand Up @@ -100,7 +100,7 @@ export default class ObsidianGit extends Plugin {

this.git = simpleGit(path);

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

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

0 comments on commit 49a68e0

Please sign in to comment.