Function
remote_fetch
(
repository_url: &Url,
commit_id: &&str,
mut fo: &mut FetchOptions,
repo: &Repository,
)
Source from the content-addressed store, hash-verified
| 311 | } |
| 312 | |
| 313 | fn remote_fetch( |
| 314 | repository_url: &Url, |
| 315 | commit_id: &&str, |
| 316 | mut fo: &mut FetchOptions, |
| 317 | repo: &Repository, |
| 318 | ) -> Result<(), Error> { |
| 319 | let mut remote = repo.remote("origin", repository_url.as_str())?; |
| 320 | remote.fetch(&[commit_id], Some(&mut fo), None)?; |
| 321 | remote.disconnect()?; |
| 322 | Ok(()) |
| 323 | } |
| 324 | |
| 325 | #[cfg(test)] |
| 326 | mod tests { |
Tested by
no test coverage detected