Remove a remote. # Arguments `name` - The name of the remote to remove # Errors Returns an error if the remote doesn't exist.
(&self, name: &str)
| 141 | /// |
| 142 | /// Returns an error if the remote doesn't exist. |
| 143 | pub fn remove_remote(&self, name: &str) -> Result<(), RepositoryError> { |
| 144 | let mut config = self.load_remotes()?; |
| 145 | config.remove(name).map_err(RepositoryError::Remote)?; |
| 146 | self.save_remotes(&config) |
| 147 | } |
| 148 | |
| 149 | /// Update the URL of an existing remote. |
| 150 | /// |
nothing calls this directly
no test coverage detected