upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/bin/git_remote_nostr/push.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/git_remote_nostr/push.rs')
-rw-r--r--src/bin/git_remote_nostr/push.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/git_remote_nostr/push.rs b/src/bin/git_remote_nostr/push.rs
index 1738790..80aed22 100644
--- a/src/bin/git_remote_nostr/push.rs
+++ b/src/bin/git_remote_nostr/push.rs
@@ -601,7 +601,7 @@ fn create_rejected_refspecs_and_remotes_refspecs(
601 .or_insert(vec![url.to_string()]); 601 .or_insert(vec![url.to_string()]);
602 term.write_line( 602 term.write_line(
603 format!( 603 format!(
604 "ERROR: {short_name} {to} conflicts with nostr ({} ahead {} behind) and local ({} ahead {} behind). either:\r\n 1. pull from that git server and resolve\r\n 2. force push your branch to the git server before pushing to nostr remote", 604 "ERROR: {short_name} {to} conflicts with nostr ({} ahead {} behind) and local ({} ahead {} behind). someone else may have pushed new updates. options:\r\n 1. review and integrate remote's tip available via `git checkout {remote_value}` \r\n 2. align remote state with nostr via `ngit sync --ref-name {to} --force` and try to push again",
605 ahead_of_nostr.len(), 605 ahead_of_nostr.len(),
606 behind_nostr.len(), 606 behind_nostr.len(),
607 ahead_of_local.len(), 607 ahead_of_local.len(),
@@ -622,7 +622,7 @@ fn create_rejected_refspecs_and_remotes_refspecs(
622 .and_modify(|a| a.push(url.to_string())) 622 .and_modify(|a| a.push(url.to_string()))
623 .or_insert(vec![url.to_string()]); 623 .or_insert(vec![url.to_string()]);
624 term.write_line( 624 term.write_line(
625 format!("ERROR: {short_name} {to} conflicts with nostr and is not an ancestor of local branch. either:\r\n 1. pull from that git server and resolve\r\n 2. force push your branch to the git server before pushing to nostr remote").as_str(), 625 format!("ERROR: {short_name} {to} conflicts with nostr and is not an ancestor of local branch. someone else may have pushed new updates. options:\r\n 1. review and integrate remote's tip available via `git checkout {remote_value}` \r\n 2. align remote state with nostr via `ngit sync --ref-name {to} --force` and try to push again").as_str(),
626 )?; 626 )?;
627 } 627 }
628 } else { 628 } else {
@@ -655,7 +655,7 @@ fn create_rejected_refspecs_and_remotes_refspecs(
655 .or_insert(vec![url.to_string()]); 655 .or_insert(vec![url.to_string()]);
656 term.write_line( 656 term.write_line(
657 format!( 657 format!(
658 "ERROR: {short_name} already contains {to} {} ahead and {} behind local branch. either:\r\n 1. pull from that git server and resolve\r\n 2. force push your branch to the git server before pushing to nostr remote", 658 "ERROR: {short_name} already contains {to} {} ahead and {} behind local branch. someone else may have pushed new updates. options:\r\n 1. review and integrate remote's tip available via `git checkout {remote_value}` \r\n 2. align remote state with nostr via `ngit sync --ref-name {to} --force` and try to push again",
659 ahead.len(), 659 ahead.len(),
660 behind.len(), 660 behind.len(),
661 ).as_str(), 661 ).as_str(),
@@ -672,7 +672,7 @@ fn create_rejected_refspecs_and_remotes_refspecs(
672 .and_modify(|a| a.push(url.to_string())) 672 .and_modify(|a| a.push(url.to_string()))
673 .or_insert(vec![url.to_string()]); 673 .or_insert(vec![url.to_string()]);
674 term.write_line( 674 term.write_line(
675 format!("ERROR: {short_name} already contains {to} at {remote_value} which is not an ancestor of local branch. either:\r\n 1. pull from that git server and resolve\r\n 2. force push your branch to the git server before pushing to nostr remote").as_str(), 675 format!("ERROR: {short_name} already contains {to} at {remote_value} which is not an ancestor of local branch. someone else may have pushed new updates. options:\r\n 1. review and integrate remote's tip available via `git checkout {remote_value}` \r\n 2. align remote state with nostr via `ngit sync --ref-name {to} --force` and try to push again").as_str(),
676 )?; 676 )?;
677 } 677 }
678 } else { 678 } else {