()
| 29 | } |
| 30 | |
| 31 | fn agent_callbacks() -> git2::RemoteCallbacks<'static> { |
| 32 | let mut remote_callbacks = RemoteCallbacks::new(); |
| 33 | remote_callbacks.credentials(move |_url, username_from_url, _allowed_types| git2::Cred::ssh_key_from_agent(username_from_url.unwrap_or("git"))); |
| 34 | remote_callbacks |
| 35 | } |
| 36 | |
| 37 | fn agent_fetch_options() -> git2::FetchOptions<'static> { |
| 38 | let remote_callbacks = agent_callbacks(); |
no outgoing calls
no test coverage detected