upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/git_remote_nostr/push.rs4
-rw-r--r--src/bin/ngit/sub_commands/sync.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/git_remote_nostr/push.rs b/src/bin/git_remote_nostr/push.rs
index 1645ae8..e880f0d 100644
--- a/src/bin/git_remote_nostr/push.rs
+++ b/src/bin/git_remote_nostr/push.rs
@@ -22,7 +22,7 @@ use ngit::{
22 list::list_from_remotes, 22 list::list_from_remotes,
23 login::{self, user::UserRef}, 23 login::{self, user::UserRef},
24 push::{push_to_remote, select_servers_push_refs_and_generate_pr_or_pr_update_event}, 24 push::{push_to_remote, select_servers_push_refs_and_generate_pr_or_pr_update_event},
25 repo_ref::{self, get_repo_config_from_yaml, is_grasp_server_in_list}, 25 repo_ref::{self, get_repo_config_from_yaml, is_grasp_server_clone_url},
26 repo_state, 26 repo_state,
27 utils::{ 27 utils::{
28 find_proposal_and_patches_by_branch_name, get_all_proposals, get_remote_name_by_url, 28 find_proposal_and_patches_by_branch_name, get_all_proposals, get_remote_name_by_url,
@@ -159,7 +159,7 @@ pub async fn run_push(
159 &repo_ref.to_nostr_git_url(&None), 159 &repo_ref.to_nostr_git_url(&None),
160 &remote_refspecs, 160 &remote_refspecs,
161 &term, 161 &term,
162 is_grasp_server_in_list(&git_server_url, &repo_ref.grasp_servers()), 162 is_grasp_server_clone_url(&git_server_url),
163 ); 163 );
164 } 164 }
165 } 165 }
diff --git a/src/bin/ngit/sub_commands/sync.rs b/src/bin/ngit/sub_commands/sync.rs
index 0860cc4..b7eb812 100644
--- a/src/bin/ngit/sub_commands/sync.rs
+++ b/src/bin/ngit/sub_commands/sync.rs
@@ -185,7 +185,7 @@ pub async fn launch(args: &SubCommandArgs) -> Result<()> {
185 &decoded_nostr_url, 185 &decoded_nostr_url,
186 &refspecs, 186 &refspecs,
187 &term, 187 &term,
188 *is_grasp_server, 188 *is_grasp_server || is_grasp_server_clone_url(url),
189 ) { 189 ) {
190 Err(error) => { 190 Err(error) => {
191 term.write_line(&format!( 191 term.write_line(&format!(