diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-09-06 07:47:13 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-09-06 07:47:13 +0100 |
| commit | a5a662632b61ef2b35946af1e93f30a885ea1db2 (patch) | |
| tree | 938fac721d85ad771a237999b7212ee6ea72d77d /src/bin/git_remote_nostr/main.rs | |
| parent | fad3f8fddffb55597432243e129e4012034b3627 (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.rs | 2 |
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( |