Showing the changes to git-protocol/src/command (1 of 1 file). Show all
Unified · Split
| @@ -53,7 +53,7 @@ mod v2 { · 52 unmodified lines | |||
| 53 | use git_transport::client::Capabilities; | 53 | use git_transport::client::Capabilities; |
| 54 | 54 | ||
| 55 | fn capabilities(command: &str, input: &str) -> Capabilities { | 55 | fn capabilities(command: &str, input: &str) -> Capabilities { |
| 56 | Capabilities::from_lines(Some(Ok("version 2".into())), format!("{}={}", command, input)) | 56 | Capabilities::from_lines(format!("version 2\n{}={}", command, input).into()) |
| 57 | .expect("valid input for V2 capabilities") | 57 | .expect("valid input for V2 capabilities") |
| 58 | } | 58 | } |
| 59 | 59 | ||