Fetch the remote's project identity and reconcile it into the local repository. Call after a successful clone/pull fetch.
(
repo: &Repository,
remote: &HttpRemote,
)
| 82 | /// Fetch the remote's project identity and reconcile it into the local |
| 83 | /// repository. Call after a successful clone/pull fetch. |
| 84 | pub async fn reconcile_after_fetch( |
| 85 | repo: &Repository, |
| 86 | remote: &HttpRemote, |
| 87 | ) -> Result<ReconcileReport, RepositoryError> { |
| 88 | let fetched = fetch_identity(remote).await?; |
| 89 | match &fetched { |
| 90 | None => Ok(ReconcileReport::default()), |
| 91 | Some(document) => apply_fetched_identity(repo, document), |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | /// Fetch-only half of [`reconcile_after_fetch`], for transports that must keep |
| 96 | /// repository writes off the async context (the daemon runs them inside |
no test coverage detected