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.
2 parents 264215b + 201ec78 commit e4775d2Copy full SHA for e4775d2
gix/src/clone/fetch/mod.rs
@@ -121,6 +121,9 @@ impl PrepareFetch {
121
// For shallow clones without a specified ref, we need to determine the default branch.
122
// We'll connect to get HEAD information. For Protocol V2, we need to explicitly list refs.
123
let mut connection = remote.connect(remote::Direction::Fetch).await?;
124
+ if let Some(f) = self.configure_connection.as_mut() {
125
+ f(&mut connection).map_err(Error::RemoteConnection)?;
126
+ }
127
128
// Perform handshake and try to get HEAD from it (works for Protocol V1)
129
let _ = connection.ref_map_by_ref(&mut progress, Default::default()).await?;
0 commit comments