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:
Paul Horn 2023-01-01 04:33:58 +01:00
parent 1bb138c79c
commit bc7873144e
No known key found for this signature in database
GPG key ID: 9361C6F901723B81
2 changed files with 2 additions and 0 deletions

View file

@ -62,6 +62,7 @@ func TestRebaseSkipEditorCommand(t *testing.T) {
`^VISUAL=.*$`,
`^EDITOR=.*$`,
`^GIT_EDITOR=.*$`,
`^GIT_SEQUENCE_EDITOR=.*$`,
"^" + daemon.DaemonKindEnvKey + "=" + string(daemon.ExitImmediately) + "$",
} {
regexStr := regexStr