upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/bin/ngit/sub_commands/sync.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2025-08-07 17:49:02 +0100
committerDanConwayDev <DanConwayDev@protonmail.com>2025-08-07 17:49:02 +0100
commitfa7adf840ac2d78defee398a61b60888f615622a (patch)
tree4efe81ecf42b1f3e636f2e14c98175e4007f6d1b /src/bin/ngit/sub_commands/sync.rs
parent896267959bc9e436d7c5d2ee0ff8c8c088fc7274 (diff)
fix(send): refs not confirmed are usually accepted
having implemented 3b5c48f5a2a4b9be5d14baa8f5e801fefd5c1166, a ref pushed to refs/nostr/<event-id> on a github repo was accepted but was not confirmed
Diffstat (limited to 'src/bin/ngit/sub_commands/sync.rs')
-rw-r--r--src/bin/ngit/sub_commands/sync.rs4
1 files changed, 2 insertions, 2 deletions
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<()> {
141 "error pushing updates to {remote_name}: error: {error}" 141 "error pushing updates to {remote_name}: error: {error}"
142 ))?; 142 ))?;
143 } 143 }
144 Ok(failed_refs) => { 144 Ok(updated_refs) => {
145 if failed_refs.is_empty() { 145 if updated_refs.values().all(std::option::Option::is_none) {
146 if *is_grasp_server || args.force { 146 if *is_grasp_server || args.force {
147 term.write_line(&format!("{remote_name} sync completed"))?; 147 term.write_line(&format!("{remote_name} sync completed"))?;
148 // TODO we only know if there was an error but not 148 // TODO we only know if there was an error but not