-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
When making a merge commit, git hangs waiting for the commit message even though I saved and closed the editor (VS Code) #1875
Comments
VS Code dev here. The problem here is that Git is setting up Code as the default editor and pointing directly to Unfortunately, looking at https://github.com/git-for-windows/build-extra/blob/fafef64ee09410734571e181d578261d5cf700bb/installer/install.iss#L1291 there doesn't seem to be a good way to fix this... |
@joaomoreno we wanted to avoid that extra process. Creating processes on Windows is really expensive, as you know... |
Forcing the user to terminate git or close their VS Code instance is also expensive :) |
Look, it has been advertised for years that you should use @melak47 if you now come and chime in from the sidelines, you will understand what my emotional response is, right? And I am sure that you want to set things right, too. Please feel free to do so. |
That's what I use, too.
I was pleasantly surprised when the git for windows installer offered to configure VS Code as the editor, so thank you and anybody else who worked on making that work!
All I meant was that using |
VS Code should actually support this. I'll push my way in microsoft/vscode#60192 and make sure the current configuration works. |
Great news! A fix for VS Code is in |
So this ticket can be closed, right? |
Setup
defaults?
to the issue you're seeing?
I had specified the editor at one point before the installer queried for you.
Details
Bash
Minimal, Complete, and Verifiable example
this will help us understand the issue.
As git cannot run a fast-forward as there are commits on both sides of the merge, it makes a merge commit and prompts me in my default editor (VS Code) to specify the commit message since I didn't provide one.
Once VS Code/the commit message file is closed, git should resume normal operation.
I closed VS Code/the commit message file and git is still frozen waiting for the file to close. Ctrl-C does not end the process. I have to close the bash window.
URL to that repository to help us with testing?
** insert URL here **
The text was updated successfully, but these errors were encountered: