diff options
Diffstat (limited to 'src/bin/ngit/sub_commands/init.rs')
| -rw-r--r-- | src/bin/ngit/sub_commands/init.rs | 3 |
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 |