Git editor is always set to pycharm, even when running through vscode #18792
Labels
meta: stale
This issue/PR is stale and will be closed soon
team: team-experience
type: bug
Something isn't working
Bug description
In trying to do a "git rebase -i", it said that it was waiting for the editor to close, but never gave me an editor.
Steps to reproduce
While using VSCode in GitPod, run any git command that requires an editor (
git rebase -i main
), and it will not show anythingWorkspace affected
No response
Expected behavior
It should open some kind of editor (vim, nano, in VSCode) to allow you to edit the commit message/rebase/etc
Example repository
No response
Anything else?
I tried setting core.editor to a few different things (nano, "code --wait"), and nothing worked. I did figure out that the VSCode executable was called "gitpod-code", so set it to "gitpod-code --wait", but still no luck.
I eventually realised that $GIT_EDITOR was set to
/ide-desktop/pycharm/bin/idea-cli open --wait
Running
unset GIT_EDITOR
meant that it use the config value properly.I would suggest, as a fix, ensuring that $GIT_EDITOR is properly set to use the same IDE that the user is using
The text was updated successfully, but these errors were encountered: