MCPcopy Create free account
hub / github.com/Qovery/engine / remote_fetch

Function remote_fetch

lib-engine/src/cmd/git.rs:313–323  ·  view source on GitHub ↗
(
    repository_url: &Url,
    commit_id: &&str,
    mut fo: &mut FetchOptions,
    repo: &Repository,
)

Source from the content-addressed store, hash-verified

311}
312
313fn 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)]
326mod tests {

Callers 1

fetchFunction · 0.85

Calls 1

as_strMethod · 0.45

Tested by

no test coverage detected