-
-
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
:Gcommit not editing .git\COMMIT_EDITMSG on windows #31
Comments
Recently got a clue about this. Do you have git.vim installed? Remove it. I can say this works fine for me. |
In the year 2019 this is definitely working. |
I am seeing a similar error when using msys2 bash as the shell and attempting to :Git cc. The buffer that is opened looks for a strange combination of windows style and unix style paths. In my example I created a git repository in To reproduce:
Additional data
It appears that the current working directory is somehow getting pasted to the front of the COMMIT_EDITMSG path I am not certain if there may be some mixup / misconfiguration between my shell configuration and any auto detection functions in the fugitive codebase that attempt to work around windows shell / path issues. In my init.lua I use the following shell configuration:
I am able to run OS :
Note: I do have Git for Windows installed in C:\Program Files\Git, but it is not in the PATH accessible to Msys2. |
Because you've combined a version of Neovim that uses Windows paths with a version of Git that uses UNIX style paths.
Making it PATH accessible will solve this. Or you could install an Msys2 version of Neovim. Or you could provide custom implementations of |
When I run
:Gcommit
it tries to add the file..gitCOMMIT_EDITMSG
to the root dir instead of editing my..git\COMMIT_EDITMSG
like it should.Steps to reproduce:
:w
:Gcommit
:wq
..gitCOMMIT_EDITMSG
instead of..git\COMMIT_EDITMSG
I'm using:
The text was updated successfully, but these errors were encountered: