summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Taylor <ctaylorr@gmail.com>2020-02-01 15:57:30 -0500
committerJesse Duffield <jessedduffield@gmail.com>2020-02-02 11:29:22 +1100
commit4cb50b15e43606a1fe4d36fc36e0b1ca447949ab (patch)
treebc2d017cff046f980be4acea0204b6b977b25871
parentca5cbe4d44e5ae1b32aa9f1832918b76b3fb5ebe (diff)
make amend more non-interactive
-rw-r--r--pkg/commands/git.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/commands/git.go b/pkg/commands/git.go
index 4bb574f95..d3f528c8e 100644
--- a/pkg/commands/git.go
+++ b/pkg/commands/git.go
@@ -623,10 +623,12 @@ func (c *GitCommand) FastForward(branchName string, remoteName string, remoteBra
func (c *GitCommand) RunSkipEditorCommand(command string) error {
cmd := c.OSCommand.ExecutableFromString(command)
+ lazyGitPath := c.OSCommand.GetLazygitPath()
cmd.Env = append(
cmd.Env,
"LAZYGIT_CLIENT_COMMAND=EXIT_IMMEDIATELY",
- "EDITOR="+c.OSCommand.GetLazygitPath(),
+ "EDITOR="+lazyGitPath,
+ "VISUAL="+lazyGitPath,
)
return c.OSCommand.RunExecutable(cmd)
}