Check if a remote exists.
(&self, name: &str)
| 206 | |
| 207 | /// Check if a remote exists. |
| 208 | pub fn has_remote(&self, name: &str) -> Result<bool, RepositoryError> { |
| 209 | let config = self.load_remotes()?; |
| 210 | Ok(config.contains(name)) |
| 211 | } |
| 212 | } |
nothing calls this directly
no test coverage detected