We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
remote::Connection::ref_map()
1 parent a75b4a2 commit 427274bCopy full SHA for 427274b
gix/src/remote/connection/ref_map.rs
@@ -90,9 +90,11 @@ where
90
progress: impl Progress,
91
options: Options,
92
) -> Result<(fetch::RefMap, gix_protocol::handshake::Outcome), Error> {
93
- let refmap = self.ref_map_by_ref(progress, options).await;
94
- let handshake = self.handshake.expect("refmap always performs handshake");
95
- refmap.map(|map| (map, handshake))
+ let refmap = self.ref_map_by_ref(progress, options).await?;
+ let handshake = self
+ .handshake
96
+ .expect("refmap always performs handshake and stores it if it succeeds");
97
+ Ok((refmap, handshake))
98
}
99
100
#[allow(clippy::result_large_err)]
0 commit comments