Create only one SSH session per GitOperation #1012
Conversation
I'm still surprised this works as per hierynomus/sshj#584 (comment), so please try to break it. |
Oh? Hold off the merge then I'll try some of my broken-ish servers. |
Thanks! On a slightly different note: While testing, I discovered that we currently always create a sync commit, even if it's empty (see android-password-store/pass-test@cd23dab). This is not a big problem, but unnecessarily complicates the Git history. Is this something that would be easy to change? |
Yeah I'll take a look, shouldn't be impossible. |
We should only create a single SSH session per GitOperation to reduce overhead and prevent repeated password prompts without bandaid solution and I finally figured out how to do it.
Along the way, a subtle bug is fixed that can lead to Git operations continuing after an error has been encountered.
Would greatly improve the usability of #995 with security tokens and simplifies the code considerably.
I synced and cancelled password prompts and everything worked as expected.