The auth-git2 crate supports more methods of authentication.
It supports: the ssh agent, the git credential helpers, more standard key locations in $HOME/.ssh (not just rsa), the askpass helper and falling back to prompting on the terminal. It can also detect encrypted OpenSSH keys by itself, so the user doesn't have to say --passphrase-needed.
Note that I'm also the author of the auth-git2 crate. I wrote it last week to be able to use it here :)
Additionally, this PR changes path-name expansion to work per path component instead of on the whole path at once. This allows to remove the workaround with string replacement on windows, and it means windows and unix share the same implementation.
The PR also simplifies conversion of parameters to values as a preparation of more enhancements I have planned :)
The
auth-git2
crate supports more methods of authentication.It supports: the ssh agent, the git credential helpers, more standard key locations in
$HOME/.ssh
(not just rsa), the askpass helper and falling back to prompting on the terminal. It can also detect encrypted OpenSSH keys by itself, so the user doesn't have to say--passphrase-needed
.Note that I'm also the author of the
auth-git2
crate. I wrote it last week to be able to use it here :)Additionally, this PR changes path-name expansion to work per path component instead of on the whole path at once. This allows to remove the workaround with string replacement on windows, and it means windows and unix share the same implementation.
The PR also simplifies conversion of parameters to values as a preparation of more enhancements I have planned :)