1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-28 16:02:01 +03:00

add GIT_OPTIONAL_LOCKS=0 env var to all commands

This commit is contained in:
Jesse Duffield
2019-06-06 20:33:25 +10:00
parent 0f0fda1660
commit 3e40369fd2
3 changed files with 11 additions and 10 deletions

View File

@ -622,7 +622,7 @@ func (c *GitCommand) FastForward(branchName string) error {
func (c *GitCommand) RunSkipEditorCommand(command string) error {
cmd := c.OSCommand.ExecutableFromString(command)
cmd.Env = append(
os.Environ(),
cmd.Env,
"LAZYGIT_CLIENT_COMMAND=EXIT_IMMEDIATELY",
"EDITOR="+c.OSCommand.GetLazygitPath(),
)