jesseduffield / jesseduffield/lazygit

"Commit changes using git editor" does not respect "os.editCommand"

Open
#2,045 1 comment 1 reaction 0 assignees View on GitHub
bug
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

**Describe the bug**

The `Commit changes using git editor` functionnality does not respect what the user specified in the configuration file under `os.editCommand` (or `os.openCommand`)

**To Reproduce**
Steps to reproduce the behavior:
1. Create a configuration file where `os.editCmd` is different that `git config core.editor`
2. Open `lazygit`
3. Hit `C`
4. Observe

**Expected behavior**

Lazygit should respect the user option first, as specified in the documentation.

**Desktop (please complete the following information):**
- OS: Linux
- The last commit id if you built project from sources (built using `go install`)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.