obsidian-git icon indicating copy to clipboard operation
obsidian-git copied to clipboard

add disable commit hooks setting

Open nickyhuyskens opened this issue 3 years ago • 3 comments

nickyhuyskens avatar May 18 '22 09:05 nickyhuyskens

Could you explain why you need this option? E.g. why don't disable hooks in this repo completely?

Vinzent03 avatar May 18 '22 09:05 Vinzent03

On my work computer, we have global git commit hooks that work on all repos and disallow commiting to master. My obsidian repo is self-hosted at home and my main branch is master so this plugin would not commit and push.

nickyhuyskens avatar May 18 '22 09:05 nickyhuyskens

I think this use case it a bit too specific for an extra setting option. When you are fine with disabling hooks completely for that git repo, you could try this answer. Of course omit --global.

Vinzent03 avatar May 26 '22 11:05 Vinzent03