bug: submodule/directory in a commit causes exception #84
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
barrettruth/diffs.nvim#84
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Prerequisites
Neovim version
Operating system
Gentoo Linux x86_64
Description
When a commit contains submodule init/update or a symlink to a directory, an exception is raised:
Adding a guard before reading the file seems to fix the issue:
but you might want to check it yourself / add tests
Steps to reproduce
Create
repro.gitrepository in current directory:Health check
Minimal reproduction
Thank you for the rigorous issue. Doing this made everything a lot easier to figure out. I am looking into it now.