Skip to main content

unbundle

Function unbundle 

Source
pub async fn unbundle(
    repo: &Repository,
    folder: &Path,
    sha: Sha,
) -> Result<(), GitError>
Expand description

Unbundle <folder>/<sha>.bundle into repo.

Objects are installed into the ODB; no ref is created. Ref creation is the remote-helper protocol’s responsibility.

§Errors

Returns GitError::Bundle if the bundle file is malformed, prerequisite objects are missing, or the pack cannot be installed. Returns GitError::Panic if the blocking task panics.