Skip to content

Commit

Permalink
fix(init): dont default git_server to nostr url
Browse files Browse the repository at this point in the history
if nostr added as origin remote before repo announcement sent
  • Loading branch information
DanConwayDev committed Nov 28, 2024
1 parent 6bcac67 commit 7ccb251
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/bin/ngit/sub_commands/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,9 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> {
} else if let Ok(url) = git_repo.get_origin_url() {
if let Ok(fetch_url) = convert_clone_url_to_https(&url) {
fetch_url
} else if url.starts_with("nostr://") {
// nostr added as origin remote before repo announcement sent
String::new()
} else {
// local repo or custom protocol
url
Expand Down

0 comments on commit 7ccb251

Please sign in to comment.