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

Editor doesn't work when using git on Windows #236

Open
jameshartig opened this issue Feb 3, 2015 · 0 comments
Open

Editor doesn't work when using git on Windows #236

jameshartig opened this issue Feb 3, 2015 · 0 comments

Comments

@jameshartig
Copy link

The editor doesn't work on Windows since the default GIT_EDITOR is "vi" but the way that go uses FindPath means that it's actually going to look for "vi.exe" in $PATH which doesn't exist because vi is just a bash script:

exec /share/vim/vim74/vim "$@"

To fix this you need to instead set your GIT_EDITOR environment to:

"C:\Program Files (x86)\Git\share\vim\vim74\vim.exe"

I haven't ran into this issue until I started using gh though, git handles the editor being a bash file fine. I'm not really sure how this can be fixed in go though.

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

1 participant