diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-09-24 15:03:58 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-09-24 19:48:11 +0100 |
| commit | d01380f7b3efebc9c40a2e71c2ddd635fa936be4 (patch) | |
| tree | 58af24e8981bfa4b0c8dc330ea8903dac3bbc479 /src/bin/git_remote_nostr/fetch.rs | |
| parent | 0acc9768c2aff4bf4495c89698f29b56dae2f4b4 (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.rs | 7 |
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}; | |||
| 10 | use auth_git2::GitAuthenticator; | 10 | use auth_git2::GitAuthenticator; |
| 11 | use git2::{Progress, Repository}; | 11 | use git2::{Progress, Repository}; |
| 12 | use ngit::{ | 12 | use 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; | |||
| 23 | use nostr_sdk::{Event, ToBech32}; | 24 | use nostr_sdk::{Event, ToBech32}; |
| 24 | 25 | ||
| 25 | use crate::utils::{ | 26 | use 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 | ||
| 31 | pub async fn run_fetch( | 32 | pub async fn run_fetch( |