-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Need to set --work-tree? #16
Comments
After more investigation it looks like something funky is going on. --work-tree does not seem necessary. c:\windows\system32\cmd /c git --git-dir="F:/src/.git" --work-tree="F:/src/" status Also :Git status works unlike :Gstatus |
After going through the code I guess changing let index = expand('%') appears to solve the problem. Hope this helps someone out. |
Are you doing something sketchy like automatically changing the directory each time you edit the file? That's a common cause of hard to debug issues like this. Your fix, though, is fairly low impact, so I'm applying it. |
Nothing that I know of unless other plugins are doing something weird. current directory seemed to be ok. It's just that the index file was found in the parent dir and not the .git directory |
I'm having some issues with running fugitive.vim under windows with msysgit. Running Gstatus tells me that all the files in the repo are marked as deleted. After researching the issue, it looks like --work-tree may need to get set as well. I'm surprised that no one has run into this before...
The text was updated successfully, but these errors were encountered: