Showing the changes to git-protocol (1 of 4 files). Show all
Unified · Split
| @@ -58,13 +58,15 @@ async fn ref_in_want() -> crate::Result { · 57 unmodified lines | ||
| 58 | 58 | want_refs: vec!["refs/heads/main".into()], |
| 59 | 59 | ..CloneRefInWantDelegate::default() |
| 60 | 60 | }; |
| 61 | − let (delegate, out) = git_protocol::fetch( | |
| 62 | − transport( | |
| 63 | − out, | |
| 64 | − "v2/clone-ref-in-want.response", | |
| 65 | − Protocol::V2, | |
| 66 | − git_transport::client::git::ConnectMode::Daemon, | |
| 67 | − ), | |
| 61 | + let mut transport = transport( | |
| 62 | + out, | |
| 63 | + "v2/clone-ref-in-want.response", | |
| 64 | + Protocol::V2, | |
| 65 | + git_transport::client::git::ConnectMode::Daemon, | |
| 66 | + ); | |
| 67 | + | |
| 68 | + let (delegate, _) = git_protocol::fetch( | |
| 69 | + &mut transport, | |
| 68 | 70 | delegate, |
| 69 | 71 | git_protocol::credentials::helper, |
| 70 | 72 | progress::Discard, |
| @@ -81,7 +83,7 @@ async fn ref_in_want() -> crate::Result { · 10 unmodified lines | ||
| 81 | 83 | ); |
| 82 | 84 | assert_eq!(delegate.pack_bytes, 641, "Should get packfile"); |
| 83 | 85 | assert_eq!( |
| 84 | − out.into_inner().1.as_bstr(), | |
| 86 | + transport.into_inner().1.as_bstr(), | |
| 85 | 87 | format!( |
| 86 | 88 | "002fgit-upload-pack does/not/matter\0\0version=2\00012command=fetch |
| 87 | 89 | 001aagent={} |