node: Propagate ref updates

Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
Alexis Sellier
2022-09-13 10:16:05 +02:00
parent cb4939fd75
commit db6932d58c
6 changed files with 109 additions and 28 deletions
+5 -1
View File
@@ -128,8 +128,12 @@ fn fetch<W: Write, H: Handle>(id: Id, mut writer: W, handle: &H) -> Result<(), D
for result in results.iter() {
match result {
FetchResult::Fetched { from } => {
FetchResult::Fetched { from, updated } => {
writeln!(writer, "ok: {} fetched from {}", &id, from)?;
for update in updated {
writeln!(writer, "{}", update)?;
}
}
FetchResult::Error { from, error } => {
writeln!(