Skip to content

GIT_EDITOR set to .sh script on windows #153246

@wookie184

Description

@wookie184

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.69.0-insider (user setup)
  • OS Version: Windows 11 Pro 22000

Steps to Reproduce:

  1. Type $Env:GIT_EDITOR in vscode powershell terminal.
  2. Notice that result is something like "c:\Users\wookie184\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\git\dist\git-editor.sh". AFAICT .sh files are not valid executables on windows so this doesn't make much sense.

This causes issues when running external tools (e.g. https://pypi.org/project/blurb/) which try and use GIT_EDITOR themselves. This can be avoided by disabling VSCode as your git editor ("git.useEditorAsCommitInput": false) but it would be nice to not have to do this.

I'll create an issue in blurb as well but I think it would be much better if it could be fixed here if possible as I'd guess there are many other tools that use GIT_EDITOR. (I don't think blurb could do much more than using a fallback if the env variable fails).

Thanks!

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalitygitGIT issues

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions