jesseduffield / lazygit

simple terminal UI for git commands
MIT License
47.94k stars 1.72k forks source link

when making a gpg signed commit, lazygit minimizes and you are shown the output of the git commit command and asked to press enter to continue #3700

Closed Un1q32 closed 3 days ago

Un1q32 commented 3 days ago

Describe the bug I just setup signed commits and now lazygit minimizes itself every commit, I can still use it just fine it's just annoying

To Reproduce

  1. Setup signed commits with git
  2. make a commit with lazygit

Expected behavior

Screenshots image

Version info: commit=, build date=, build source=unknown, version=0.42.0, os=linux, arch=amd64, git version=2.45.2 git version 2.45.2

Un1q32 commented 3 days ago

Just tested with the latest master (26c3e0d333a0e4404080b9fa3081fc2364367f20), still happens

stefanhaller commented 3 days ago

This is not a bug. Lazygit does this because it has no way of knowing whether you will be required to type a password. Minimizing itself is the only way it can let you do that if you need to.

If you know you never need to type a password (because you have some kind of password agent), you can add this to your lazygit config to avoid this:

git:
  overrideGpg: true