mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-12 23:41:54 +03:00
Override GIT_SEQUENCE_EDITOR for rebase commands
I noticed that `$GIT_SEQUENCE_EDITOR` is overridden in `PrepareInteractiveRebaseCommand` but not in `runSkipEditorCommand`. Before this change, some commands such as `SquashAllAboveFixupCommits` would not work when a different sequence editor, e.g. [git-interactive-rebase-tool](https://github.com/MitMaro/git-interactive-rebase-tool) is configured.
This commit is contained in:
@ -62,6 +62,7 @@ func TestRebaseSkipEditorCommand(t *testing.T) {
|
||||
`^VISUAL=.*$`,
|
||||
`^EDITOR=.*$`,
|
||||
`^GIT_EDITOR=.*$`,
|
||||
`^GIT_SEQUENCE_EDITOR=.*$`,
|
||||
"^" + daemon.DaemonKindEnvKey + "=" + string(daemon.ExitImmediately) + "$",
|
||||
} {
|
||||
regexStr := regexStr
|
||||
|
Reference in New Issue
Block a user