Closed SukkaW closed 4 years ago
https://github.com/jesseduffield/lazygit/commit/95ae806e09380e6c1602a91af6d34e8ffd770274
Maybe the issue is related with this commit.
Please try setting EDITOR
environment variable and then run lazygit
.
Like: EDITOR=vim lazygit
.
@dawidd6 I have already set EDITOR
in my .zshrc
.
And if I open lazygit using EDITOR=vim lazygit
, the issue still there.
@glvr182 seems like more stuff need tweaking after https://github.com/jesseduffield/lazygit/pull/414
Looks as if the env variable does not exist anymore, i'll do some investigating
Identified possible bug:
if repoPath != "." {
if err := os.Chdir(repoPath); err != nil {
log.Fatal(err.Error())
}
}
Seems to have side effects
When calling a subprocess the program calls lazygit back with the following signature:
lazygit /home/glenn/Develop/src/github.com/jesseduffield/lazygit/.git/rebase-merge/git-rebase-todo
This is likely the source of the crash
Can you check if #516 works @SukkaW
@glvr182
$ git clone https://github.com/glvr182/lazygit
$ cd lazygit
$ git checkout hotfix/path-not-positional
$ go build
$ ./lazygit
And it works.
great! PR is up so when that is accepted / merged it should be pushed to the ppa aswell @SukkaW
Just to be sure, have you tried overwrtiting the editor aswell?
@glvr182 Yeah. I have changed git core.editor
config from nano
to vim
. and lazygit works as expected.
$EDITOR
in shell enviroment is not effective for lazygit even if I have removed git core.editor
config. But I believe it is expected behavior: lazygit should use value from git config core.editor
only.
lazygit should fallback to EDITOR
if git.editor
is not set
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
Commits
panelgit config --global core.editor $(which vim)
andgit config --global core.editor $(which nano)
, neither of them works.Commits
panelgit config --global core.editor $(which vim)
andgit config --global core.editor $(which nano)
, neither of them works.Expected behavior A clear and concise description of what you expected to happen.
I use nano as default editor for git. lazygit used to works well with nano.
Desktop (please complete the following information):