History

adjust to changes in `git-credentials` (#450)

Sebastian Thiel committed 4 years ago

Commit 40cc1dc1 parent 71f65193 files · +5 −5Browse files

Showing the changes to git-protocol/src (2 of 3 files). Show all

Unified · Split

2 files
  1. git-protocol/src/fetch/handshake.rs +3 −3
  2. git-protocol/src/fetch_fn.rs +1 −1
git-protocol/src/fetch/handshake.rs+3−3
@@ -21,7 +21,7 @@ mod error { · 20 unmodified lines
2121 #[allow(missing_docs)]
2222 pub enum Error {
2323 #[error(transparent)]
24− Credentials(#[from] credentials::helper::Error),
24+ Credentials(#[from] credentials::helper::invoke::Error),
2525 #[error(transparent)]
2626 Transport(#[from] client::Error),
2727 #[error("The transport didn't accept the advertised server version {actual_version:?} and closed the connection client side")]
@@ -54,7 +54,7 @@ pub(crate) mod function { · 26 unmodified lines
5454 progress: &mut impl Progress,
5555 ) -> Result<Outcome, Error>
5656 where
57− AuthFn: FnMut(credentials::helper::Action<'_>) -> credentials::helper::Result,
57+ AuthFn: FnMut(credentials::helper::Action<'_>) -> credentials::helper::invoke::Result,
5858 T: client::Transport,
5959 {
6060 let (server_protocol_version, refs, capabilities) = {
@@ -79,7 +79,7 @@ pub(crate) mod function { · 18 unmodified lines
7979 drop(result); // needed to workaround this: https://github.com/rust-lang/rust/issues/76149
8080 let url = transport.to_url();
8181 progress.set_name("authentication");
82− let credentials::helper::Outcome { identity, next } =
82+ let credentials::helper::invoke::Outcome { identity, next } =
8383 authenticate(credentials::helper::Action::Fill(url.as_str().into()))?
8484 .expect("FILL provides an identity");
8585 transport.set_identity(identity)?;
git-protocol/src/fetch_fn.rs+1−1
@@ -53,7 +53,7 @@ pub async fn fetch<F, D, T>( · 52 unmodified lines
5353 fetch_mode: FetchConnection,
5454 ) -> Result<(), Error>
5555 where
56− F: FnMut(credentials::helper::Action<'_>) -> credentials::helper::Result,
56+ F: FnMut(credentials::helper::Action<'_>) -> credentials::helper::invoke::Result,
5757 D: Delegate,
5858 T: client::Transport,
5959 {