Comments
Patch
@@ -95,6 +95,20 @@
exit(&ui, on_unsupported, Err(error.into()))
});
+ if let Some(repo_path_bytes) = &early_args.repo {
+ if repo_path_bytes.contains(&b':') {
+ exit(
+ &ui,
+ OnUnsupported::from_config(&non_repo_config),
+ Err(CommandError::UnsupportedFeature {
+ message: format_bytes!(
+ b"URL-like --repository {}",
+ repo_path_bytes
+ ),
+ }),
+ )
+ }
+ }
let repo_path = early_args.repo.as_deref().map(get_path_from_bytes);
let repo_result = match Repo::find(&non_repo_config, repo_path) {
Ok(repo) => Ok(repo),