Save remote configuration for this repository. # Arguments `config` - The remote configuration to save # Errors Returns an error if the config file cannot be written.
(&self, config: &RemoteConfig)
| 37 | /// |
| 38 | /// Returns an error if the config file cannot be written. |
| 39 | pub fn save_remotes(&self, config: &RemoteConfig) -> Result<(), RepositoryError> { |
| 40 | config |
| 41 | .save(self.config_path()) |
| 42 | .map_err(|e| RepositoryError::Config(e.to_string())) |
| 43 | } |
| 44 | |
| 45 | /// Get a remote by name. |
| 46 | /// |
no test coverage detected