Skip to main content

run_sync_remote

Function run_sync_remote 

Source
pub async fn run_sync_remote(
    repo_root: &Path,
    remote: &RemoteConfig,
    repin: bool,
) -> Result<RemoteSyncReport>
Expand description

Fetch a remote KG archive, verify SHA-256, populate .khive/kg/remotes/, write meta.json. Fail-closed on hash mismatch; use repin=true to update the pin.