denolehov / obsidian-git

Backup your Obsidian.md vault with git
MIT License
6.15k stars 252 forks source link

[Bug]: Running git pull executes push #570

Open danielo515 opened 11 months ago

danielo515 commented 11 months ago

Describe the bug

I was testing some new vault, and I wanted to pull all my notes, so I thought that doing a git pull using this plugin will be easy. However, to my surprise and even after deactivating all the automatic push things that I found, after executing git pull it tries to push. Thankfully it errored and it didn't pushed any test notes to my main vault, but this is not nice.

Relevant errors (if available) from notifications or console (CTRL+SHIFT+I)

No response

Steps to reproduce

Just setup this plugin in a new vault, add a remote and try to do a pull. It will automatically try to push

Expected Behavior

To pull from remote and not do anything else

Addition context

image

Operating system

macOS

Installation Method

None

Plugin version

2.20.7

Vinzent03 commented 11 months ago

How did you pull? E.g. command palette, source control view,..

danielo515 commented 11 months ago

command palette. By the way, is there a way to get the logs in a easy to copy format? Notifications are not selectable

Vinzent03 commented 11 months ago

I can't reproduce and couldn't find a way in the code this could happen. Can you still reproduce and are sure you are calling the correct command? Can you reproduce that in a new vault without any changes to the settings?

You can view some logs in the console as stated in the issue template.

danielo515 commented 11 months ago

Leave it for now. It is not a critical issue as I was using it only for testing

On Tue, 1 Aug 2023 at 14:51, Vinzent @.***> wrote:

I can't reproduce and couldn't find a way in the code this could happen. Can you still reproduce and are sure you are calling the correct command? Can you reproduce that in a new vault without any changes to the settings?

You can view some logs in the console as stated in the issue template.

— Reply to this email directly, view it on GitHub https://github.com/denolehov/obsidian-git/issues/570#issuecomment-1660250105, or unsubscribe https://github.com/notifications/unsubscribe-auth/AARKJWLCRWQCQI7QHJZ4VCLXTD3UBANCNFSM6AAAAAA27T3RXE . You are receiving this because you authored the thread.Message ID: @.***>

--

https://danielorodriguez.com