From 49a68e0396b46c09a49f03898b804f97d1a709b3 Mon Sep 17 00:00:00 2001 From: Vinzent Date: Wed, 17 Mar 2021 10:04:19 +0100 Subject: [PATCH] fix: disable check for root git repository fix #55 fix #11 --- main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.ts b/main.ts index 3b097632..0f21fcea 100644 --- a/main.ts +++ b/main.ts @@ -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, @@ -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.");