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

core.editor is ignored #414

Closed
pm100 opened this issue Nov 9, 2020 · 3 comments
Closed

core.editor is ignored #414

pm100 opened this issue Nov 9, 2020 · 3 comments

Comments

@pm100
Copy link
Contributor

pm100 commented Nov 9, 2020

git goes through the following sequence to find the external editor

  • GIT_EDITOR
  • core.editor
  • VISUAL
  • EDITOR
  • "vi"

Currently gitui does not look at core.editor. vscode sets this value when you install the git extension for it so this is a very common situation. I expect other cases set it too.

During investigating this I found 2 other issues

vscode set my core.editor to

core.editor="C:\Users\paulm\AppData\Local\Programs\Microsoft VS Code\Code.exe" --wait

This doesnt work once I fixed the config lookup.

image

The code hints that this would not work.

I think the other calls to config.get_str need to be changed too. I certainly confirmed that get_str on code.editor was silently failing with the error indicated in the git2 bug. I expect that others will silently fail too.

@extrawurst
Copy link
Owner

@pm100 how much of this is fixed via #419 ?

@pm100
Copy link
Contributor Author

pm100 commented Dec 7, 2020

all of it. Except the referenced call to get user.name and user.email (fix for bug to do withuser.name not set ) i didnt want to roll to much into on PR. There is another PR that really isnt needed either, was created by back and forht over this one but it is resvolved here #426

@extrawurst
Copy link
Owner

Cool thanks for that, will work my way through the PRs over the next days. I finally want to release push - call defeat on pull for now. it is just too complex right now and the unreleased version grows out of proportion

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

2 participants