upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/bin/ngit/sub_commands
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-11-28 17:08:22 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2024-11-28 17:08:22 +0000
commit7ccb251ea99e7a3f396754302eb0f836a1b5a608 (patch)
tree851f7df58be493ef937c969f45a76423a8945058 /src/bin/ngit/sub_commands
parent6bcac672e04cb316de1f952c08b07937c7db3cc6 (diff)
fix(init): dont default git_server to nostr url
if nostr added as origin remote before repo announcement sent
Diffstat (limited to 'src/bin/ngit/sub_commands')
-rw-r--r--src/bin/ngit/sub_commands/init.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bin/ngit/sub_commands/init.rs b/src/bin/ngit/sub_commands/init.rs
index 2817506..32af619 100644
--- a/src/bin/ngit/sub_commands/init.rs
+++ b/src/bin/ngit/sub_commands/init.rs
@@ -287,6 +287,9 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> {
287 } else if let Ok(url) = git_repo.get_origin_url() { 287 } else if let Ok(url) = git_repo.get_origin_url() {
288 if let Ok(fetch_url) = convert_clone_url_to_https(&url) { 288 if let Ok(fetch_url) = convert_clone_url_to_https(&url) {
289 fetch_url 289 fetch_url
290 } else if url.starts_with("nostr://") {
291 // nostr added as origin remote before repo announcement sent
292 String::new()
290 } else { 293 } else {
291 // local repo or custom protocol 294 // local repo or custom protocol
292 url 295 url