Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions gix/src/clone/fetch/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ impl PrepareFetch {
// For shallow clones without a specified ref, we need to determine the default branch.
// We'll connect to get HEAD information. For Protocol V2, we need to explicitly list refs.
let mut connection = remote.connect(remote::Direction::Fetch).await?;
if let Some(f) = self.configure_connection.as_mut() {
f(&mut connection).map_err(Error::RemoteConnection)?;
}

// Perform handshake and try to get HEAD from it (works for Protocol V1)
let _ = connection.ref_map_by_ref(&mut progress, Default::default()).await?;
Expand Down
Loading