Skip to content

Commit 49a68e0

Browse files
committed
fix: disable check for root git repository
fix #55 fix #11
1 parent 9ded8f5 commit 49a68e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { spawnSync } from "child_process";
22
import { FileSystemAdapter, Notice, Plugin, PluginSettingTab, Setting, SuggestModal } from "obsidian";
3-
import simpleGit, { CheckRepoActions, FileStatusResult, SimpleGit } from "simple-git";
3+
import simpleGit, { FileStatusResult, SimpleGit } from "simple-git";
44

55
enum PluginState {
66
idle,
@@ -100,7 +100,7 @@ export default class ObsidianGit extends Plugin {
100100

101101
this.git = simpleGit(path);
102102

103-
const isValidRepo = await this.git.checkIsRepo(CheckRepoActions.IS_REPO_ROOT);
103+
const isValidRepo = await this.git.checkIsRepo();
104104

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

0 commit comments

Comments
 (0)