pub async fn sync( raw: &mut RawRepository, tip_commit_hash: CommitHash, ) -> Result<Result<(), String>, Error>