diff options
Diffstat (limited to 'src/bin')
| -rw-r--r-- | src/bin/ngit/sub_commands/init.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/bin/ngit/sub_commands/init.rs b/src/bin/ngit/sub_commands/init.rs index 3dc63ad..2817506 100644 --- a/src/bin/ngit/sub_commands/init.rs +++ b/src/bin/ngit/sub_commands/init.rs | |||
| @@ -444,7 +444,10 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> { | |||
| 444 | .iter() | 444 | .iter() |
| 445 | .map(std::string::ToString::to_string) | 445 | .map(std::string::ToString::to_string) |
| 446 | .collect::<Vec<String>>(); | 446 | .collect::<Vec<String>>(); |
| 447 | // if yaml file doesnt exist or needs updating | 447 | |
| 448 | // no longer create a new maintainers.yaml file - its too confusing for users | ||
| 449 | // as it falls out of sync with data in nostr event . update if it already | ||
| 450 | // exists | ||
| 448 | if match &repo_config_result { | 451 | if match &repo_config_result { |
| 449 | Ok(config) => { | 452 | Ok(config) => { |
| 450 | !<std::option::Option<std::string::String> as Clone>::clone(&config.identifier) | 453 | !<std::option::Option<std::string::String> as Clone>::clone(&config.identifier) |
| @@ -453,7 +456,7 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> { | |||
| 453 | || !extract_pks(config.maintainers.clone())?.eq(&maintainers) | 456 | || !extract_pks(config.maintainers.clone())?.eq(&maintainers) |
| 454 | || !config.relays.eq(&relays) | 457 | || !config.relays.eq(&relays) |
| 455 | } | 458 | } |
| 456 | Err(_) => true, | 459 | Err(_) => false, |
| 457 | } { | 460 | } { |
| 458 | save_repo_config_to_yaml( | 461 | save_repo_config_to_yaml( |
| 459 | &git_repo, | 462 | &git_repo, |