Properly report changes to existing remotes

This commit is contained in:
2021-11-18 11:44:44 +01:00
parent 1843ddc840
commit 2fe003ce04

View File

@@ -160,6 +160,7 @@ fn sync_trees(config: Config) {
} }
}; };
if remote.url != current_url { if remote.url != current_url {
print_repo_action(name, &format!("Updating remote {} to \"{}\"", &remote.name, &remote.url));
if let Err(e) = repo_handle.remote_set_url(&remote.name, &remote.url) { if let Err(e) = repo_handle.remote_set_url(&remote.name, &remote.url) {
print_repo_error(name, &format!("Repository failed during setting of the remote URL for remote \"{}\": {}", &remote.name, e)); print_repo_error(name, &format!("Repository failed during setting of the remote URL for remote \"{}\": {}", &remote.name, e));
continue; continue;