upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/bin/git_remote_nostr/main.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-09-06 07:47:13 +0100
committerDanConwayDev <DanConwayDev@protonmail.com>2024-09-06 07:47:13 +0100
commita5a662632b61ef2b35946af1e93f30a885ea1db2 (patch)
tree938fac721d85ad771a237999b7212ee6ea72d77d /src/bin/git_remote_nostr/main.rs
parentfad3f8fddffb55597432243e129e4012034b3627 (diff)
feat(remote): fetch protocol selection / fallback
enable override from nostr url clone url is local use local otherwise try https unathenticated, ssh, then https authenticated
Diffstat (limited to 'src/bin/git_remote_nostr/main.rs')
-rw-r--r--src/bin/git_remote_nostr/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/git_remote_nostr/main.rs b/src/bin/git_remote_nostr/main.rs
index 7bfe3f4..a3fc5f8 100644
--- a/src/bin/git_remote_nostr/main.rs
+++ b/src/bin/git_remote_nostr/main.rs
@@ -75,7 +75,7 @@ async fn main() -> Result<()> {
75 println!("unsupported"); 75 println!("unsupported");
76 } 76 }
77 ["fetch", oid, refstr] => { 77 ["fetch", oid, refstr] => {
78 fetch::run_fetch(&git_repo, &repo_ref, &stdin, oid, refstr).await?; 78 fetch::run_fetch(&git_repo, &repo_ref, &decoded_nostr_url, &stdin, oid, refstr).await?;
79 } 79 }
80 ["push", refspec] => { 80 ["push", refspec] => {
81 push::run_push( 81 push::run_push(