[Bug]: Pulling causes reverse changes
Describe the bug
On mobile, sometimes pulling causes the pulled changes to be immediately reversed and staged (or sometimes unstaged) and not-discardable. Trying to discard them (to get back to how the files were pulled) results in an error. What error you ask? I have no clue. It just errors. I cannot find where errors can be copied from.
This is probably a shortcoming of Obsidian, not to provide a good way to get to some kind of error log. So your plugin could aid in getting to that log, by, for example:
- Tapping the error notification opens the log
- Adding a button that, when tapped, opens the log
I cannot find the log in the command palette, so I cannot give you the exact error. I guess, just eat your own dog food (as they say) and you will run into this bug sooner rather than later. Seemingly especially when using both desktop and mobile devices.
Relevant errors (if available) from notifications or console (CTRL+SHIFT+I)
Steps to reproduce
Just use git sync as intended. No clear reproduction path is currently known.
Expected Behavior
When the user pulls, just pull and don't do any other magical things. I guess.
Maybe even if pull itself errors, provide a force pull option. But in this case, it's not the pull itself that goes wrong. It's the reverse changes that are magically being made and some of it even staged. So just don't do that. I guess.
Addition context
No response
Operating system
Android
Installation Method
No response
Plugin version
2.39.0
Source: Vinzent03/obsidian-git