From fa7adf840ac2d78defee398a61b60888f615622a Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Thu, 7 Aug 2025 17:49:02 +0100 Subject: fix(send): refs not confirmed are usually accepted having implemented 3b5c48f5a2a4b9be5d14baa8f5e801fefd5c1166, a ref pushed to refs/nostr/ on a github repo was accepted but was not confirmed --- src/bin/ngit/sub_commands/sync.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/bin') diff --git a/src/bin/ngit/sub_commands/sync.rs b/src/bin/ngit/sub_commands/sync.rs index e7033b2..00dfe75 100644 --- a/src/bin/ngit/sub_commands/sync.rs +++ b/src/bin/ngit/sub_commands/sync.rs @@ -141,8 +141,8 @@ pub async fn launch(args: &SubCommandArgs) -> Result<()> { "error pushing updates to {remote_name}: error: {error}" ))?; } - Ok(failed_refs) => { - if failed_refs.is_empty() { + Ok(updated_refs) => { + if updated_refs.values().all(std::option::Option::is_none) { if *is_grasp_server || args.force { term.write_line(&format!("{remote_name} sync completed"))?; // TODO we only know if there was an error but not -- cgit v1.2.3