(&self)
| 132 | } |
| 133 | |
| 134 | pub fn project_id(&self) -> Result<ProjectId, RepositoryError> { |
| 135 | self.project_identity()? |
| 136 | .ok_or_else(|| invalid("MissingProjectIdentity"))? |
| 137 | .project_id() |
| 138 | .map_err(invalid) |
| 139 | } |
| 140 | |
| 141 | /// Reconcile a remotely fetched identity with the local one after a clone |
| 142 | /// or pull. Never invents history: an identity that differs from a |