Implement SSH upload-pack fetches

This commit is contained in:
2026-08-25 20:31:10 +02:00
parent 5dbda4bbd2
commit 051e14235f
9 changed files with 1367 additions and 53 deletions

View File

@@ -1343,6 +1343,13 @@ impl GitRemote {
GitRemoteCredentials::Https { .. } => None,
}
}
#[cfg(all(test, feature = "ssh"))]
pub(crate) fn set_ssh_test_port(&mut self, port: u16) {
if let RemoteEndpoint::Ssh(endpoint) = &mut self.endpoint {
endpoint.port = port;
}
}
}
/// An executable and arguments. It is never interpreted by a shell.