Skip to content
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

Git Commit Showing Empty COMMIT_EDITMSG #2299

Open
FatherOfEgg opened this issue May 5, 2024 · 3 comments
Open

Git Commit Showing Empty COMMIT_EDITMSG #2299

FatherOfEgg opened this issue May 5, 2024 · 3 comments

Comments

@FatherOfEgg
Copy link

cc / :Git commit worked in the past, but then for some reason it decided to not work. It does work if I do git commit while not in nvim, and it opens the COMMIT_EDITMSG properly in nvim.

I have the same nvim setup on another machine, and the commit works there.

2024-05-05.19-26-01.mp4
@andrewjhaman
Copy link

I am having the same issue. Reinstall of everything didn't seem to help

@gotnone
Copy link

gotnone commented Nov 21, 2024

@FatherOfEgg @andrewjhaman
Can you check what the actual path of the COMMIT_EDITMSG file is on your broken system? I can't seem to see it in the video you provided.

I am having a similar issue, but with Msys2 bash as the shell. In my case the buffer that is spawned has a strange combination of the current working directory written as if it is a windows path and then a unix style path pointing to the COMMIT_EDITMSG location is appended to that working directory path.

E.g. for a git repository located at C:/src/test fugitive tries to edit the commit message at C:/src/test//c/src/test/.git/COMMIT_EDITMSG

The buffer that is spawned sometimes has the "relative" path displayed and sometimes this broken full path. To verify that the full path is broken I used the command :lua print(vim.fn.expand('%:p') )

I added some additional details on #31 which I thought may be more relevant because I am using msys2 and bash as my shell.

@tpope
Copy link
Owner

tpope commented Nov 21, 2024

(I can't tell what's going on in that video because the progress bar is covering the bottom of the screen.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants