1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-10 23:57:43 +02:00

Merge pull request #2342 from knutwalker/override-git-sequence-editor-for-rebase

This commit is contained in:
Jesse Duffield 2023-02-05 13:52:35 +11:00 committed by GitHub
commit 469938ee9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -332,6 +332,7 @@ func (self *RebaseCommands) runSkipEditorCommand(cmdObj oscommands.ICmdObj) erro
AddEnvVars( AddEnvVars(
daemon.DaemonKindEnvKey+"="+string(daemon.ExitImmediately), daemon.DaemonKindEnvKey+"="+string(daemon.ExitImmediately),
"GIT_EDITOR="+lazyGitPath, "GIT_EDITOR="+lazyGitPath,
"GIT_SEQUENCE_EDITOR="+lazyGitPath,
"EDITOR="+lazyGitPath, "EDITOR="+lazyGitPath,
"VISUAL="+lazyGitPath, "VISUAL="+lazyGitPath,
). ).

View File

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