upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/bin/git_remote_nostr/fetch.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-09-24 15:03:58 +0100
committerDanConwayDev <DanConwayDev@protonmail.com>2024-09-24 19:48:11 +0100
commitd01380f7b3efebc9c40a2e71c2ddd635fa936be4 (patch)
tree58af24e8981bfa4b0c8dc330ea8903dac3bbc479 /src/bin/git_remote_nostr/fetch.rs
parent0acc9768c2aff4bf4495c89698f29b56dae2f4b4 (diff)
feat(login): login via nip46 QR code
or nostrconnect url string which is a much better UX flow for nip46
Diffstat (limited to 'src/bin/git_remote_nostr/fetch.rs')
-rw-r--r--src/bin/git_remote_nostr/fetch.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/bin/git_remote_nostr/fetch.rs b/src/bin/git_remote_nostr/fetch.rs
index 46e7ad3..ff55d6f 100644
--- a/src/bin/git_remote_nostr/fetch.rs
+++ b/src/bin/git_remote_nostr/fetch.rs
@@ -10,6 +10,7 @@ use anyhow::{anyhow, bail, Context, Result};
10use auth_git2::GitAuthenticator; 10use auth_git2::GitAuthenticator;
11use git2::{Progress, Repository}; 11use git2::{Progress, Repository};
12use ngit::{ 12use ngit::{
13 cli_interactor::count_lines_per_msg_vec,
13 git::{ 14 git::{
14 nostr_url::{CloneUrl, NostrUrlDecoded, ServerProtocol}, 15 nostr_url::{CloneUrl, NostrUrlDecoded, ServerProtocol},
15 utils::check_ssh_keys, 16 utils::check_ssh_keys,
@@ -23,9 +24,9 @@ use nostr::nips::nip19;
23use nostr_sdk::{Event, ToBech32}; 24use nostr_sdk::{Event, ToBech32};
24 25
25use crate::utils::{ 26use crate::utils::{
26 count_lines_per_msg_vec, fetch_or_list_error_is_not_authentication_failure, 27 fetch_or_list_error_is_not_authentication_failure, find_proposal_and_patches_by_branch_name,
27 find_proposal_and_patches_by_branch_name, get_oids_from_fetch_batch, get_open_proposals, 28 get_oids_from_fetch_batch, get_open_proposals, get_read_protocols_to_try, join_with_and,
28 get_read_protocols_to_try, join_with_and, set_protocol_preference, Direction, 29 set_protocol_preference, Direction,
29}; 30};
30 31
31pub async fn run_fetch( 32pub async fn run_fetch(