altsem / gitu

A TUI Git client inspired by Magit
MIT License
1.7k stars 88 forks source link

crash/stuck if you need to enter username/password for a repo #99

Open altsem opened 4 months ago

altsem commented 4 months ago

Found that a user had commented this, need to verify / fix it.

golden-expiriensu commented 3 months ago

This is how it looks like on 0.14.0. No crashes but very strange behavior: the prompt for password is not disappearing but the control works once every other time, you press jjjj but you move only 2 lines down.

Screenshot 2567-04-08 at 21 06 02 Screenshot 2567-04-08 at 21 07 19 Screenshot 2567-04-08 at 21 08 34
golden-expiriensu commented 3 months ago

So yeah, it feels like being stuck. What flow is expected in the case where password is needed?

altsem commented 3 months ago

Maybe there's a way to probe to see if a password is required? Or a way to disable the CLI prompt, handle the error and prompt/provide a username & password with gitu's prompt.

Other ways are perhaps looking at integrating with Gitoxide or git2.

I tried implementing the entire push flow with git2 before, but it seemed messy.

I'm open for ideas!