jesseduffield / lazygit

simple terminal UI for git commands
MIT License
48.52k stars 1.74k forks source link

Answer prompt within LazyGit #3205

Open daniloraisi opened 6 months ago

daniloraisi commented 6 months ago

Describe the bug Is there a way to answer the fingerprint prompt when fetching a repository?

To Reproduce Steps to reproduce the behavior:

  1. Remove or rename the file ~/.ssh/known_hosts
  2. Navigate to a folder with a git repository
  3. Open LazyGit.
  4. See the command log displaying the message prompt.

Expected behavior A way to answer the prompt.

Screenshots image

Version info: 0.40.2 2.30.2

summersb commented 1 month ago

I have a similar issue with a repo that requires smartcard based authentication. From the command line a git pull prompts to enter the pin for the smartcard then it will do the pull In lazygit the UI just stops because I can not enter the pin

gmlexx commented 1 week ago

Hi folks, Unfortunately prompt handling isn't generic. Recently I made a contribution similar to your issue. I see that some PIN prompt handling is there, but if your prompt message is different it will be ignored. As you didn't provide the exact prompt message it's hard to add your case.

daniloraisi commented 1 week ago

As you can see in the attached image @gmlexx, I provided the exact prompt message. It is the fingerprint confirmation that appears on the first connection attempt.