-
-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Error] Cannot find index file: .../.git/index #47
Comments
You are making an error, explicitly. gitsigns.nvim/lua/gitsigns.lua Lines 326 to 330 in b8ff522
I'm really sorry. I am so embarrassed. |
As a suggestion, how about using print instead of error? |
Thanks for this. I haven't considered this scenario. I'll reopen and try and fix this. Also many thanks for the minimal steps to reproduce. That makes dealing with this so much easier! |
Thank you very much. Thanks to the issues template, I was able to quickly create issues. |
I'd noticed this bug too, but had been too busy to eliminate wether there was an issue in my setup (I'd been playing with the statusline handlers at the time). FWIW I believe the last commit before this issue was:
|
Could someone kindly try out #50, It should fix this issue. |
@lewis6991 Thank you! I have confirmed that it has been fixed 👍 |
Describe the bug
Opening a file in a git project that has never been committed will result in an error
If
./git/index
does not exist, an error will occur.To Reproduce
init.vim:
Steps to reproduce the behavior:
$ mkdir sample_proj && cd $_ && git init
$ touch file.vim
$ nvim -u ~/tmp/init.vim -i NONE file.vim
Observed output
Error messages, logs, etc
Screenshots
If applicable, add screenshots to help explain your problem or to capture error messages.
Additional context
System: Linux
Neovim version: v0.5.0-dev+1012-gfe1ebea33
The text was updated successfully, but these errors were encountered: