diff options
Diffstat (limited to 'crates/mozart/src/commands/init.rs')
| -rw-r--r-- | crates/mozart/src/commands/init.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/crates/mozart/src/commands/init.rs b/crates/mozart/src/commands/init.rs index 25600f7..49176ab 100644 --- a/crates/mozart/src/commands/init.rs +++ b/crates/mozart/src/commands/init.rs @@ -700,12 +700,17 @@ fn parse_repositories(repos: &[String]) -> anyhow::Result<Vec<RawRepository>> { .as_str() .ok_or_else(|| anyhow::anyhow!("Repository JSON must contain a 'url' field"))? .to_string(); - result.push(RawRepository { repo_type, url }); + result.push(RawRepository { + repo_type, + url: Some(url), + package: None, + }); } else { // Plain URL result.push(RawRepository { repo_type: "vcs".to_string(), - url: repo.clone(), + url: Some(repo.clone()), + package: None, }); } } |
