-
-
Notifications
You must be signed in to change notification settings - Fork 453
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
if you try to open a diff view of a file that's actually a nested repository (not a sub module), this plugin will throw an unhandled error, and then afterwards the diff view won't load any other files that you want to open.
A reload of the plugin is needed to reset this.
It's because only certain errors are handled in the gitShow function and others are just thrown and not being handled anywhere. (Is this intentional?)
Relevant errors (if available) from notifications or console (CTRL+SHIFT+I)
Steps to reproduce
- Move a git repo inside your vault.
- Commit it a few times.
- Try to open it with the diff view.
Expected Behavior
No response
Addition context
I've done a bit of research on if there's a easy efficient git way to detect if any of the committed objects are actually a git repository, or other bad things like symlinks, but didn't find anything simple.
Operating system
macOS
Installation Method
None
Plugin version
2.31.1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working